Allow all faction members to fly if f perm is undefined
This commit is contained in:
parent
026b33b427
commit
a4581ac9a0
@ -956,7 +956,9 @@ public abstract class MemoryFPlayer implements FPlayer {
|
||||
}
|
||||
|
||||
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() {
|
||||
|
Loading…
Reference in New Issue
Block a user