Make Item.createEntity only call when its specifically a EntityItem, not a subclass of it.
This commit is contained in:
parent
192fb0f10e
commit
30f74ac44c
|
@ -24,7 +24,7 @@ public class ForgeInternalHandler
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Entity entity = event.entity;
|
Entity entity = event.entity;
|
||||||
if (entity instanceof EntityItem)
|
if (entity.getClass().equals(EntityItem.class))
|
||||||
{
|
{
|
||||||
ItemStack item = ((EntityItem)entity).item;
|
ItemStack item = ((EntityItem)entity).item;
|
||||||
if (item != null && item.getItem().hasCustomEntity(item))
|
if (item != null && item.getItem().hasCustomEntity(item))
|
||||||
|
|
Loading…
Reference in New Issue