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
commit4534ef84152c26f37520b54f815413770d3467ca (patch)
treea9217b6a3b878fc24b5066bfff401787b4f98b67
parent51a6ae2cf0294180f7f96972b289ac1d7e90d7be (diff)
downloadEssentials-4534ef84152c26f37520b54f815413770d3467ca.tar
Essentials-4534ef84152c26f37520b54f815413770d3467ca.tar.gz
Essentials-4534ef84152c26f37520b54f815413770d3467ca.tar.lz
Essentials-4534ef84152c26f37520b54f815413770d3467ca.tar.xz
Essentials-4534ef84152c26f37520b54f815413770d3467ca.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))
{