Fixed ItemFactory::isRegistered() returns false for blocks

This commit is contained in:
Dylan K. Taylor 2017-09-11 18:23:26 +01:00
parent 07268e4b37
commit 130a60f2b2
2 changed files with 4 additions and 1 deletions

View File

@ -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;
}
}

@ -1 +1 @@
Subproject commit c568b5ec9bd0606f0334d28ba60b0fc6c624a8f9
Subproject commit 6bd229348533ec9c46e38d24ce0c0da66b759e67