RuntimeBlockMapping: make fallbackStateData not useless

This commit is contained in:
Dylan K. Taylor
2022-02-07 02:49:19 +00:00
parent f870568e62
commit 863f9560b0

View File

@ -73,7 +73,7 @@ final class RuntimeBlockMapping{
}catch(BlockStateSerializeException){
//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.
$blockStateData = new BlockStateData(BlockTypeNames::INFO_UPDATE, CompoundTag::create(), BlockStateData::CURRENT_VERSION);
$blockStateData = $this->fallbackStateData;
}
$networkId = $this->blockStateDictionary->lookupStateIdFromData($blockStateData);