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

This commit is contained in:
LexManos committed 2012-10-18 16:55:35 -07:00
1 parent 192fb0f10e
commit 30f74ac44c
1 file changed
+1 -1
@@ -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))