Keep it at faster enabled-checks for moving event.

This commit is contained in:
asofold 2012-11-03 10:09:19 +01:00
parent 1e7b60f79b
commit c43a00e21c

View File

@ -391,7 +391,7 @@ public class MovingListener implements Listener {
final Location passableTo; final Location passableTo;
// Check passable in any case (!) // Check passable in any case (!)
if (passable.isEnabled(player)) { if (cc.passableCheck && !NCPExemptionManager.isExempted(player, CheckType.MOVING_PASSABLE) && !player.hasPermission(Permissions.MOVING_PASSABLE)) {
// Passable is checked first to get the original set-back locations from the other checks, if needed. // Passable is checked first to get the original set-back locations from the other checks, if needed.
passableTo = passable.check(player, pFrom, pTo, data, cc); passableTo = passable.check(player, pFrom, pTo, data, cc);
} }