mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 15:41:33 +00:00
Convert BlockFactory to singleton
This commit is contained in:
@@ -467,7 +467,7 @@ class ItemFactory{
|
||||
*/
|
||||
public static function isRegistered(int $id, int $variant = 0) : bool{
|
||||
if($id < 256){
|
||||
return BlockFactory::isRegistered($id);
|
||||
return BlockFactory::getInstance()->isRegistered($id);
|
||||
}
|
||||
|
||||
return isset(self::$list[self::getListOffset($id, $variant)]);
|
||||
|
Reference in New Issue
Block a user