mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-26 21:03:45 +00:00
ItemBlock: fixed unnecessary double singleton usage
This commit is contained in:
parent
18c2e90574
commit
8e600b4a78
@ -63,7 +63,7 @@ final class ItemBlock extends Item{
|
||||
if(!$factory->isRegistered($this->blockTypeId)){
|
||||
return VanillaBlocks::AIR();
|
||||
}
|
||||
$blockType = BlockFactory::getInstance()->fromTypeId($this->blockTypeId);
|
||||
$blockType = $factory->fromTypeId($this->blockTypeId);
|
||||
$blockType->decodeTypeData($this->blockTypeData);
|
||||
return $blockType;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user