3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-09-06 16:12:51 +02:00

Slight cleanup of region parsing in EditSessionBuilder

Dieser Commit ist enthalten in:
dordsor21 2021-10-25 14:13:26 +01:00
Ursprung f7e94fd450
Commit 47f25c4f31
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B

Datei anzeigen

@ -536,7 +536,7 @@ public final class EditSessionBuilder {
}
}
}
if (allowedRegions == null) {
if (allowedRegions == null && Settings.IMP.REGION_RESTRICTIONS) {
if (actor != null && !actor.hasPermission("fawe.bypass") && !actor.hasPermission("fawe.bypass.regions")) {
if (actor instanceof Player) {
Player player = (Player) actor;
@ -564,7 +564,7 @@ public final class EditSessionBuilder {
if (allowedRegions.length == 1) {
regionExtent = new SingleRegionExtent(this.extent, this.limit, allowedRegions[0]);
} else {
regionExtent = new MultiRegionExtent(this.extent, this.limit, allowedRegions, disallowedRegions);
regionExtent = new MultiRegionExtent(this.extent, this.limit, allowedRegions, null);
}
}
}