mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-03-09 13:09:09 +01:00
Revert "fix", though it would not matter that much, it's probably too
late.
This commit is contained in:
parent
96d9abf0c4
commit
a6e01c8b48
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user