mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-22 19:58:34 +01:00
made the amulet of wrath hurt players
This commit is contained in:
parent
9880bcf9bd
commit
42fb819889
1 changed files with 2 additions and 2 deletions
|
@ -83,10 +83,10 @@ public class ItemShockwaveCreator extends ItemImpl implements ITrinketItem {
|
||||||
source = DamageSource.MAGIC;
|
source = DamageSource.MAGIC;
|
||||||
|
|
||||||
int range = 5;
|
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,
|
||||||
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)
|
if (mob.isDead || mob == living)
|
||||||
continue;
|
continue;
|
||||||
if (living.getDistanceSq(mob) > range * range)
|
if (living.getDistanceSq(mob) > range * range)
|
||||||
|
|
Loading…
Reference in a new issue