made the amulet of wrath hurt players

This commit is contained in:
Ellpeck 2018-11-17 22:04:46 +01:00
parent 9880bcf9bd
commit 42fb819889

View file

@ -83,10 +83,10 @@ public class ItemShockwaveCreator extends ItemImpl implements ITrinketItem {
source = DamageSource.MAGIC;
int range = 5;
List<EntityLiving> mobs = worldIn.getEntitiesWithinAABB(EntityLiving.class, new AxisAlignedBB(
List<EntityLivingBase> 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)