mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 00:55:14 +00:00
Fixed ItemFactory::isRegistered() returns false for blocks
This commit is contained in:
@ -358,6 +358,9 @@ class ItemFactory{
|
|||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public static function isRegistered(int $id) : bool{
|
public static function isRegistered(int $id) : bool{
|
||||||
|
if($id < 256){
|
||||||
|
return BlockFactory::isRegistered($id);
|
||||||
|
}
|
||||||
return self::$list[$id] !== null;
|
return self::$list[$id] !== null;
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user