Peace of mind stuff.

This commit is contained in:
Mysticate 2015-09-30 18:35:56 -04:00
parent c3b2c10934
commit a25e2c575d
2 changed files with 12 additions and 1 deletions

View File

@ -641,6 +641,17 @@ public class Maze implements Listener
_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());
}

View File

@ -65,7 +65,7 @@ public class PerkRepulsor extends Perk
for (Entity ent : UtilEnt.getInRadius(player.getLocation(), 6).keySet())
{
if (!(ent instanceof Player) && !(ent instanceof LivingEntity))
if (ent instanceof Player || !(ent instanceof LivingEntity))
continue;
ent.playEffect(EntityEffect.HURT);