mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-11 12:27:51 +00:00
Fixed ItemFactory::isRegistered() returns false for blocks
This commit is contained in:
parent
07268e4b37
commit
130a60f2b2
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1 +1 @@
|
|||||||
Subproject commit c568b5ec9bd0606f0334d28ba60b0fc6c624a8f9
|
Subproject commit 6bd229348533ec9c46e38d24ce0c0da66b759e67
|
Loading…
x
Reference in New Issue
Block a user