mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Make Item.createEntity only call when its specifically a EntityItem, not a subclass of it.
This commit is contained in:
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))
|
||||
|
||||
Reference in new issue
Block a user