Skip to content

Commit

Permalink
Merge pull request #104 from TheNextLvl-net/perm-fix
Browse files Browse the repository at this point in the history
Fix permission check logic in multi-block filtering
  • Loading branch information
NonSwag authored Dec 20, 2024
2 parents 48e0218 + ee5a4a4 commit e37fa7e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ private void filterBlocks(Location source, List<Block> blocks, Flag<Boolean> fla
private <T> void filter(Location source, List<T> list, Function<T, Location> function, @Nullable Player player, Flag<Boolean> flag) {
filter(source, list, function, (area, target) -> {
if (player == null) return area.canInteract(target) && target.getFlag(flag);
return target.isPermitted(player.getUniqueId()) && target.getFlag(flag);
return target.isPermitted(player.getUniqueId()) || target.getFlag(flag);
});
}

Expand Down

0 comments on commit e37fa7e

Please sign in to comment.