diff --git a/src/pocketmine/item/ItemFactory.php b/src/pocketmine/item/ItemFactory.php index 6075dfe82..f0e12cdc2 100644 --- a/src/pocketmine/item/ItemFactory.php +++ b/src/pocketmine/item/ItemFactory.php @@ -358,6 +358,9 @@ class ItemFactory{ * @return bool */ public static function isRegistered(int $id) : bool{ + if($id < 256){ + return BlockFactory::isRegistered($id); + } return self::$list[$id] !== null; } } \ No newline at end of file diff --git a/tests/plugins/PocketMine-TesterPlugin b/tests/plugins/PocketMine-TesterPlugin index c568b5ec9..6bd229348 160000 --- a/tests/plugins/PocketMine-TesterPlugin +++ b/tests/plugins/PocketMine-TesterPlugin @@ -1 +1 @@ -Subproject commit c568b5ec9bd0606f0334d28ba60b0fc6c624a8f9 +Subproject commit 6bd229348533ec9c46e38d24ce0c0da66b759e67