diff options
author | md_5 <md_5@bigpond.com> | 2012-03-24 10:37:11 +1100 |
---|---|---|
committer | md_5 <md_5@bigpond.com> | 2012-03-24 10:37:11 +1100 |
commit | 2566d8a0db3fdff1aa323ef6f252b1a3c93070e0 (patch) | |
tree | 0f1da5d141804e8d1170588821f13b9b2dd29c19 /EssentialsAntiCheat/src | |
parent | dc4ca6386f48b997d57d1791edc64830e886e60a (diff) | |
download | Essentials-2566d8a0db3fdff1aa323ef6f252b1a3c93070e0.tar Essentials-2566d8a0db3fdff1aa323ef6f252b1a3c93070e0.tar.gz Essentials-2566d8a0db3fdff1aa323ef6f252b1a3c93070e0.tar.lz Essentials-2566d8a0db3fdff1aa323ef6f252b1a3c93070e0.tar.xz Essentials-2566d8a0db3fdff1aa323ef6f252b1a3c93070e0.zip |
Fix flying when not in creative mode
Diffstat (limited to 'EssentialsAntiCheat/src')
-rw-r--r-- | EssentialsAntiCheat/src/com/earth2me/essentials/anticheat/player/NoCheatPlayerImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/EssentialsAntiCheat/src/com/earth2me/essentials/anticheat/player/NoCheatPlayerImpl.java b/EssentialsAntiCheat/src/com/earth2me/essentials/anticheat/player/NoCheatPlayerImpl.java index 07f66b375..3417368ab 100644 --- a/EssentialsAntiCheat/src/com/earth2me/essentials/anticheat/player/NoCheatPlayerImpl.java +++ b/EssentialsAntiCheat/src/com/earth2me/essentials/anticheat/player/NoCheatPlayerImpl.java @@ -133,7 +133,7 @@ public class NoCheatPlayerImpl implements NoCheatPlayer public boolean isCreative() { - return player.getGameMode() == GameMode.CREATIVE; + return player.getGameMode() == GameMode.CREATIVE || player.getAllowFlight(); } @Override |