Fixed asymmetric API

This commit is contained in:
Dylan K. Taylor 2022-02-01 19:39:39 +00:00
parent f4f4ea1483
commit e808b7aac4
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -2499,9 +2499,7 @@ final class BlockStateDeserializer{
}
/** @throws BlockStateDeserializeException */
public function deserialize(CompoundTag $blockState) : Block{
$blockStateData = BlockStateData::fromNbt($blockState);
public function deserialize(BlockStateData $blockStateData) : Block{
$id = $blockStateData->getName();
if(!array_key_exists($id, $this->deserializeFuncs)){
throw new BlockStateDeserializeException("Unknown block ID \"$id\"");