mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
Fix fly logic check (creative doesn't mean fly is enabled)
This commit is contained in:
parent
0e6a5240db
commit
af3f3fb4c7
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue