mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-27 05:13:46 +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)){
|
if(!$factory->isRegistered($this->blockTypeId)){
|
||||||
return VanillaBlocks::AIR();
|
return VanillaBlocks::AIR();
|
||||||
}
|
}
|
||||||
$blockType = BlockFactory::getInstance()->fromTypeId($this->blockTypeId);
|
$blockType = $factory->fromTypeId($this->blockTypeId);
|
||||||
$blockType->decodeTypeData($this->blockTypeData);
|
$blockType->decodeTypeData($this->blockTypeData);
|
||||||
return $blockType;
|
return $blockType;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user