From 496407b656bc2f820e9e53fb86b5f345c61bc87e Mon Sep 17 00:00:00 2001 From: Zeranny Date: Mon, 16 Oct 2023 09:46:36 +0100 Subject: [PATCH] Fix ellipsoid and cylinder regions not fully clearing (#2413) --- .../worldedit/regions/selector/CylinderRegionSelector.java | 2 ++ .../worldedit/regions/selector/EllipsoidRegionSelector.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/regions/selector/CylinderRegionSelector.java b/worldedit-core/src/main/java/com/sk89q/worldedit/regions/selector/CylinderRegionSelector.java index 7a685cbe9..26c406d07 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/regions/selector/CylinderRegionSelector.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/regions/selector/CylinderRegionSelector.java @@ -247,6 +247,8 @@ public void learnChanges() { @Override public void clear() { region = new CylinderRegion(region.getWorld()); + selectedCenter = false; + selectedRadius = false; } @Override diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/regions/selector/EllipsoidRegionSelector.java b/worldedit-core/src/main/java/com/sk89q/worldedit/regions/selector/EllipsoidRegionSelector.java index 32036bfa6..35a8e3b7c 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/regions/selector/EllipsoidRegionSelector.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/regions/selector/EllipsoidRegionSelector.java @@ -227,6 +227,8 @@ public void learnChanges() { public void clear() { region.setCenter(BlockVector3.ZERO); region.setRadius(Vector3.ZERO); + started = false; + selectedRadius = false; } @Override