mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 11:58:00 +00:00
Rename BlockFactory::fromFullBlock() -> BlockFactory::fromStateId()
This commit is contained in:
@@ -172,7 +172,7 @@ final class BlockObjectToBlockStateSerializer implements BlockStateSerializer{
|
||||
|
||||
public function serialize(int $stateId) : BlockStateData{
|
||||
//TODO: singleton usage not ideal
|
||||
return $this->serializeBlock(BlockFactory::getInstance()->fromFullBlock($stateId));
|
||||
return $this->serializeBlock(BlockFactory::getInstance()->fromStateId($stateId));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -76,7 +76,7 @@ final class ItemDeserializer{
|
||||
}
|
||||
|
||||
//TODO: worth caching this or not?
|
||||
return BlockFactory::getInstance()->fromFullBlock($block)->asItem();
|
||||
return BlockFactory::getInstance()->fromStateId($block)->asItem();
|
||||
}
|
||||
$id = $data->getName();
|
||||
if(!isset($this->deserializers[$id])){
|
||||
|
Reference in New Issue
Block a user