From 30f74ac44c4ea93c84d856fc166cbbb71ef921a2 Mon Sep 17 00:00:00 2001 From: LexManos Date: Thu, 18 Oct 2012 16:55:35 -0700 Subject: [PATCH] Make Item.createEntity only call when its specifically a EntityItem, not a subclass of it. --- common/net/minecraftforge/common/ForgeInternalHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/net/minecraftforge/common/ForgeInternalHandler.java b/common/net/minecraftforge/common/ForgeInternalHandler.java index 7def0ddbb..7d9e40065 100644 --- a/common/net/minecraftforge/common/ForgeInternalHandler.java +++ b/common/net/minecraftforge/common/ForgeInternalHandler.java @@ -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))