mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 17:36:12 +00:00
Remove ItemFactory::get(), use ItemFactory::fromTypeId() for VanillaItems
soon we'll invert the dependency and set up all this stuff in VanillaItems directly, rendering ItemFactory (mostly) unnecessary.
This commit is contained in:
@ -39,7 +39,7 @@ final class ItemSerializerDeserializerTest extends TestCase{
|
||||
}
|
||||
|
||||
public function testAllVanillaItemsSerializableAndDeserializable() : void{
|
||||
foreach(ItemFactory::getInstance()->getAllRegistered() as $item){
|
||||
foreach(ItemFactory::getInstance()->getAllKnownTypes() as $item){
|
||||
if($item->isNull()){
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user