From 25c4a56e8958df2f7c2a299a1690a3edd5751c74 Mon Sep 17 00:00:00 2001 From: Wyatt Childers Date: Sat, 5 Mar 2016 16:10:03 -0500 Subject: [PATCH] Fixed a bug where virtually all mobs were determined to be Animals on the Forge 1.8 platform --- .../main/java/com/sk89q/worldedit/forge/ForgeEntityType.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeEntityType.java b/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeEntityType.java index 8fb19f3cd..c56375105 100644 --- a/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeEntityType.java +++ b/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeEntityType.java @@ -36,6 +36,7 @@ import net.minecraft.entity.item.EntityTNTPrimed; import net.minecraft.entity.item.EntityXPOrb; import net.minecraft.entity.monster.EntityGolem; import net.minecraft.entity.passive.EntityAmbientCreature; +import net.minecraft.entity.passive.EntityAnimal; import net.minecraft.entity.passive.EntityTameable; import net.minecraft.entity.passive.IAnimals; import net.minecraft.entity.player.EntityPlayer; @@ -108,7 +109,7 @@ public class ForgeEntityType implements EntityType { @Override public boolean isAnimal() { - return entity instanceof IAnimals; + return entity instanceof EntityAnimal; } @Override