Skip to content

Commit 5a695fa

Browse files
committed
Improve readability for world bypass permission
1 parent d92552d commit 5a695fa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/net/onelitefeather/bettergopaint/listeners/InteractListener.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ public void onClick(PlayerInteractEvent event) {
8585
return;
8686
}
8787

88-
if (!player.hasPermission(BetterGoPaint.WORLD_BYPASS_PERMISSION) && Settings.settings().GENERIC.DISABLED_WORLDS
88+
final boolean hasNotWorldBaypassPermission = !player.hasPermission(BetterGoPaint.WORLD_BYPASS_PERMISSION);
89+
90+
if (hasNotWorldBaypassPermission && Settings.settings().GENERIC.DISABLED_WORLDS
8991
.contains(location.getWorld().getName())) {
9092
return;
9193
}

0 commit comments

Comments
 (0)