mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +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
|
@Override
|
||||||
public void clear() {
|
public void clear() {
|
||||||
region = new CylinderRegion(region.getWorld());
|
region = new CylinderRegion(region.getWorld());
|
||||||
|
selectedCenter = false;
|
||||||
|
selectedRadius = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user