mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 00:25:04 +00:00
Fixed ItemFactory::isRegistered() returns false for blocks
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user