mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-01 23:59:53 +00:00
Fixed asymmetric API
This commit is contained in:
parent
f4f4ea1483
commit
e808b7aac4
@ -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\"");
|
||||
|
Loading…
x
Reference in New Issue
Block a user