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