mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-13 01:54:25 +02:00
Fix fly logic check (creative doesn't mean fly is enabled)
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
Reference in New Issue
Block a user