Make Item.createEntity only call when its specifically a EntityItem, not a subclass of it.

This commit is contained in:
LexManos 2012-10-18 16:55:35 -07:00
parent 192fb0f10e
commit 30f74ac44c
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ public class ForgeInternalHandler
}
}
Entity entity = event.entity;
if (entity instanceof EntityItem)
if (entity.getClass().equals(EntityItem.class))
{
ItemStack item = ((EntityItem)entity).item;
if (item != null && item.getItem().hasCustomEntity(item))