mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-14 10:34:41 +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
|
public static Location getSafeDestination(final IUser user, final Location loc) throws Exception
|
||||||
{
|
{
|
||||||
if (loc.getWorld().equals(user.getBase().getWorld())
|
if (loc.getWorld().equals(user.getBase().getWorld())
|
||||||
&& (user.getBase().getGameMode() == GameMode.CREATIVE
|
&& ((user.getBase().getGameMode() == GameMode.CREATIVE
|
||||||
|| (user.isGodModeEnabled() && user.getBase().getAllowFlight())))
|
|| user.isGodModeEnabled()) && user.getBase().getAllowFlight()))
|
||||||
{
|
{
|
||||||
if (shouldFly(loc))
|
if (shouldFly(loc))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user