We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e40a37e commit 410289aCopy full SHA for 410289a
eternalcombat-plugin/src/main/java/com/eternalcode/combat/region/worldguard/WorldGuardRegionProvider.java
@@ -85,7 +85,7 @@ private boolean isCombatRegion(ProtectedRegion region) {
85
@Nullable
86
private ProtectedRegion highestPriorityRegion(ApplicableRegionSet applicableRegions) {
87
return applicableRegions.getRegions().stream()
88
- .min(Comparator.comparingInt(ProtectedRegion::getPriority))
+ .max(Comparator.comparingInt(ProtectedRegion::getPriority))
89
.orElse(null);
90
}
91
0 commit comments