summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2014-03-31 03:26:48 +0100
committerKHobbits <rob@khobbits.co.uk>2014-03-31 03:26:48 +0100
commitaf3f3fb4c70aebb61fc53f7cd7872ed2db010bb2 (patch)
treeca45b2dd2c0dd3bc639cc8addc91eb8ea2703359
parent0e6a5240db2134147b5f13cba7cc4cf99809ba6f (diff)
downloadEssentials-af3f3fb4c70aebb61fc53f7cd7872ed2db010bb2.tar
Essentials-af3f3fb4c70aebb61fc53f7cd7872ed2db010bb2.tar.gz
Essentials-af3f3fb4c70aebb61fc53f7cd7872ed2db010bb2.tar.lz
Essentials-af3f3fb4c70aebb61fc53f7cd7872ed2db010bb2.tar.xz
Essentials-af3f3fb4c70aebb61fc53f7cd7872ed2db010bb2.zip
Fix fly logic check (creative doesn't mean fly is enabled)
-rw-r--r--Essentials/src/com/earth2me/essentials/utils/LocationUtil.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/Essentials/src/com/earth2me/essentials/utils/LocationUtil.java b/Essentials/src/com/earth2me/essentials/utils/LocationUtil.java
index d9871983c..aaaa8fc06 100644
--- a/Essentials/src/com/earth2me/essentials/utils/LocationUtil.java
+++ b/Essentials/src/com/earth2me/essentials/utils/LocationUtil.java
@@ -266,8 +266,8 @@ public class LocationUtil
public static Location getSafeDestination(final IUser user, final Location loc) throws Exception
{
if (loc.getWorld().equals(user.getBase().getWorld())
- && (user.getBase().getGameMode() == GameMode.CREATIVE
- || (user.isGodModeEnabled() && user.getBase().getAllowFlight())))
+ && ((user.getBase().getGameMode() == GameMode.CREATIVE
+ || user.isGodModeEnabled()) && user.getBase().getAllowFlight()))
{
if (shouldFly(loc))
{