mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-01 15:49:54 +00:00
RuntimeBlockMapping: make fallbackStateData not useless
This commit is contained in:
parent
f870568e62
commit
863f9560b0
@ -73,7 +73,7 @@ final class RuntimeBlockMapping{
|
|||||||
}catch(BlockStateSerializeException){
|
}catch(BlockStateSerializeException){
|
||||||
//TODO: this will swallow any error caused by invalid block properties; this is not ideal, but it should be
|
//TODO: this will swallow any error caused by invalid block properties; this is not ideal, but it should be
|
||||||
//covered by unit tests, so this is probably a safe assumption.
|
//covered by unit tests, so this is probably a safe assumption.
|
||||||
$blockStateData = new BlockStateData(BlockTypeNames::INFO_UPDATE, CompoundTag::create(), BlockStateData::CURRENT_VERSION);
|
$blockStateData = $this->fallbackStateData;
|
||||||
}
|
}
|
||||||
|
|
||||||
$networkId = $this->blockStateDictionary->lookupStateIdFromData($blockStateData);
|
$networkId = $this->blockStateDictionary->lookupStateIdFromData($blockStateData);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user