You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Blocks.fromProperties can return the raw data of a block instead of an instance of the class Block. There either should be an error or the block in the default state.
code (shortened):
staticfromProperties(typeId,properties,biomeId){constblock=typeoftypeId==='string' ? registry.blocksByName[typeId] : registry.blocks[typeId]if(version.type==='pc'){// ...}elseif(version.type==='bedrock'){// ... tries to find state idreturnblock// should be error or instantce of Block}}
The text was updated successfully, but these errors were encountered:
sertonix
changed the title
Blocks.fromProperties not always returns Block
Blocks.fromProperties not always returns a Block
Aug 12, 2022
Blocks.fromProperties can return the raw data of a block instead of an instance of the class Block. There either should be an error or the block in the default state.
code (shortened):
The text was updated successfully, but these errors were encountered: