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

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

View File

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

View File

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