From 8e600b4a78f989f394febc8de277bb95d7e6b008 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Tue, 6 Dec 2022 12:48:28 +0000 Subject: [PATCH] ItemBlock: fixed unnecessary double singleton usage --- src/item/ItemBlock.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/item/ItemBlock.php b/src/item/ItemBlock.php index 0c50d0adb..eb476de88 100644 --- a/src/item/ItemBlock.php +++ b/src/item/ItemBlock.php @@ -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; }