1
0
mirror of https://github.com/plexusorg/Plex-FAWE.git synced 2025-04-03 07:03:15 +00:00

Fix "cleared" ellipsoid/cylinder regions still passing isDefined check ()

This commit is contained in:
Zeranny 2023-10-21 16:27:39 +01:00 committed by GitHub
parent 37161f9f69
commit 50ecc5908d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions
worldedit-core/src/main/java/com/sk89q/worldedit/regions/selector

@ -254,6 +254,8 @@ public class CylinderRegionSelector implements RegionSelector, CUIRegion {
@Override
public void clear() {
region = new CylinderRegion(region.getWorld());
selectedCenter = false;
selectedRadius = false;
}
@Override

@ -227,6 +227,8 @@ public class EllipsoidRegionSelector implements RegionSelector, CUIRegion {
public void clear() {
region.setCenter(BlockVector3.ZERO);
region.setRadius(Vector3.ZERO);
started = false;
selectedRadius = false;
}
@Override