Reduce to 34 compiler errors

This commit is contained in:
2025-08-02 13:25:22 +02:00
parent 0287881e33
commit 598daadd33
24 changed files with 84 additions and 95 deletions
@@ -41,7 +41,7 @@ public class RegionUtils {
public void forEachInRegion(Region region, Consumer<Player> consumer) {
Bukkit.getOnlinePlayers()
.stream()
.filter(player -> region.inRegion(player.getLocation()))
.filter(player -> region.getArea().inRegion(player.getLocation(), false))
.filter(player -> !region.getType().isGlobal() || Region.getRegion(player.getLocation()).getType().isGlobal())
.forEach(consumer);
}