mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
Fix "cleared" ellipsoid/cylinder regions still passing isDefined check (#2465)
This commit is contained in:
parent
37161f9f69
commit
50ecc5908d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user