From 8cc805ca4d1046de224e19ff3a4171d3f319d419 Mon Sep 17 00:00:00 2001 From: Vazkii Date: Sat, 2 Feb 2013 20:55:01 +0000 Subject: [PATCH] Make GeneralHelper.isHostileEntity apply to all mobs Not all mobs extend EntityMob (e.g. Ghasts), the interface IMob, trough, encompasses all mobs. --- ee3_common/com/pahimar/ee3/core/helper/GeneralHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ee3_common/com/pahimar/ee3/core/helper/GeneralHelper.java b/ee3_common/com/pahimar/ee3/core/helper/GeneralHelper.java index 67abe368..c8b7229b 100644 --- a/ee3_common/com/pahimar/ee3/core/helper/GeneralHelper.java +++ b/ee3_common/com/pahimar/ee3/core/helper/GeneralHelper.java @@ -4,7 +4,7 @@ import java.util.ArrayList; import net.minecraft.block.Block; import net.minecraft.entity.EntityLiving; -import net.minecraft.entity.monster.EntityMob; +import net.minecraft.entity.monster.IMob; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; @@ -50,7 +50,7 @@ public class GeneralHelper { public static boolean isHostileEntity(EntityLiving entity) { - if (entity instanceof EntityMob) { + if (entity instanceof IMob) { return true; } else {