Allow all faction members to fly if f perm is undefined

This commit is contained in:
Trent Hensler 2018-03-18 19:37:19 -07:00
parent 026b33b427
commit a4581ac9a0

View File

@ -956,7 +956,9 @@ public abstract class MemoryFPlayer implements FPlayer {
} }
Access access = faction.getAccess(this, PermissableAction.FLY); Access access = faction.getAccess(this, PermissableAction.FLY);
return access != null && access == Access.ALLOW; // True if access is somehow null (should never happen), true if access is undefinied (let everyone fly by default)
// or if access is set (allow or deny), true if allow.
return access == null || access == Access.UNDEFINED || access == Access.ALLOW;
} }
public boolean shouldTakeFallDamage() { public boolean shouldTakeFallDamage() {