mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Clean up terminology around block state IDs and their handling
This commit is contained in:
@ -25,7 +25,7 @@ namespace pocketmine\block\tile;
|
||||
|
||||
use pocketmine\block\Air;
|
||||
use pocketmine\block\Block;
|
||||
use pocketmine\block\BlockFactory;
|
||||
use pocketmine\block\RuntimeBlockStateRegistry;
|
||||
use pocketmine\data\bedrock\block\BlockStateDeserializeException;
|
||||
use pocketmine\data\bedrock\block\BlockStateNames;
|
||||
use pocketmine\data\SavedDataLoadingException;
|
||||
@ -67,7 +67,7 @@ class FlowerPot extends Spawnable{
|
||||
}catch(BlockStateDeserializeException $e){
|
||||
throw new SavedDataLoadingException("Error deserializing plant for flower pot: " . $e->getMessage(), 0, $e);
|
||||
}
|
||||
$this->setPlant(BlockFactory::getInstance()->fromStateId($blockStateId));
|
||||
$this->setPlant(RuntimeBlockStateRegistry::getInstance()->fromStateId($blockStateId));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user