From 47f25c4f319bbdb401d3ec6b80d90c3726e14927 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Mon, 25 Oct 2021 14:13:26 +0100 Subject: [PATCH] Slight cleanup of region parsing in EditSessionBuilder --- .../src/main/java/com/sk89q/worldedit/EditSessionBuilder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/EditSessionBuilder.java b/worldedit-core/src/main/java/com/sk89q/worldedit/EditSessionBuilder.java index ff12eaf06..65d92d0f8 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/EditSessionBuilder.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/EditSessionBuilder.java @@ -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); } } }