From 42fb8198896c737d0ef992d8e15153246cba92f3 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 17 Nov 2018 22:04:46 +0100 Subject: [PATCH] made the amulet of wrath hurt players --- .../de/ellpeck/naturesaura/items/ItemShockwaveCreator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/ellpeck/naturesaura/items/ItemShockwaveCreator.java b/src/main/java/de/ellpeck/naturesaura/items/ItemShockwaveCreator.java index fe36b072..59781ab8 100644 --- a/src/main/java/de/ellpeck/naturesaura/items/ItemShockwaveCreator.java +++ b/src/main/java/de/ellpeck/naturesaura/items/ItemShockwaveCreator.java @@ -83,10 +83,10 @@ public class ItemShockwaveCreator extends ItemImpl implements ITrinketItem { source = DamageSource.MAGIC; int range = 5; - List mobs = worldIn.getEntitiesWithinAABB(EntityLiving.class, new AxisAlignedBB( + List mobs = worldIn.getEntitiesWithinAABB(EntityLivingBase.class, new AxisAlignedBB( living.posX - range, living.posY - 0.5, living.posZ - range, living.posX + range, living.posY + 0.5, living.posZ + range)); - for (EntityLiving mob : mobs) { + for (EntityLivingBase mob : mobs) { if (mob.isDead || mob == living) continue; if (living.getDistanceSq(mob) > range * range)