Revert "fix", though it would not matter that much, it's probably too

late.
This commit is contained in:
asofold 2012-08-31 02:55:33 +02:00
parent 96d9abf0c4
commit a6e01c8b48

View File

@ -336,13 +336,9 @@ public class MovingListener implements Listener {
Location newTo = null;
if ((player.getGameMode() == GameMode.CREATIVE || player.getAllowFlight())){
// If the player is handled by the creative fly check, execute it.
if (creativeFly.isEnabled(player))
newTo = creativeFly.check(player, data.from, data.to);
else
data.clearFlyData();
}
if ((player.getGameMode() == GameMode.CREATIVE || player.getAllowFlight()) && creativeFly.isEnabled(player))
// If the player is handled by the creative fly check, execute it.
newTo = creativeFly.check(player, data.from, data.to);
else if (survivalFly.isEnabled(player)) {
// If he is handled by the survival fly check, execute it.
newTo = survivalFly.check(player, data.from, data.to);