Fix fly logic check (creative doesn't mean fly is enabled)

This commit is contained in:
KHobbits 2014-03-31 03:26:48 +01:00
parent 0e6a5240db
commit af3f3fb4c7

View File

@ -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))
{