mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-10 12:59:54 +01:00
Fix fly logic check (creative doesn't mean fly is enabled)
This commit is contained in:
parent
0e6a5240db
commit
af3f3fb4c7
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user