Peace of mind stuff.
This commit is contained in:
parent
c3b2c10934
commit
a25e2c575d
|
@ -641,6 +641,17 @@ public class Maze implements Listener
|
||||||
_movementWaypointsDisabled.add(cur);
|
_movementWaypointsDisabled.add(cur);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (Iterator<LivingEntity> it = _ents.keySet().iterator() ; it.hasNext() ;)
|
||||||
|
{
|
||||||
|
LivingEntity en = it.next();
|
||||||
|
|
||||||
|
if (!_nextSafePad.isOn(en))
|
||||||
|
continue;
|
||||||
|
|
||||||
|
it.remove();
|
||||||
|
en.remove();
|
||||||
|
}
|
||||||
|
|
||||||
Bukkit.getPluginManager().callEvent(new SafepadBuildEvent());
|
Bukkit.getPluginManager().callEvent(new SafepadBuildEvent());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -65,7 +65,7 @@ public class PerkRepulsor extends Perk
|
||||||
|
|
||||||
for (Entity ent : UtilEnt.getInRadius(player.getLocation(), 6).keySet())
|
for (Entity ent : UtilEnt.getInRadius(player.getLocation(), 6).keySet())
|
||||||
{
|
{
|
||||||
if (!(ent instanceof Player) && !(ent instanceof LivingEntity))
|
if (ent instanceof Player || !(ent instanceof LivingEntity))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
ent.playEffect(EntityEffect.HURT);
|
ent.playEffect(EntityEffect.HURT);
|
||||||
|
|
Loading…
Reference in New Issue