mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-27 05:00:08 +08:00
EllipsoidRegion's constructor now takes radius, not offset radius.
This commit is contained in:
parent
3a828c9759
commit
0138cd7f1c
@ -59,11 +59,11 @@ public EllipsoidRegion(Vector pos1, Vector pos2) {
|
||||
public EllipsoidRegion(LocalWorld world, Vector center, Vector radius) {
|
||||
super(world);
|
||||
this.center = center;
|
||||
this.radius = radius;
|
||||
setRadius(radius);
|
||||
}
|
||||
|
||||
public EllipsoidRegion(EllipsoidRegion ellipsoidRegion) {
|
||||
this(ellipsoidRegion.world, ellipsoidRegion.center, ellipsoidRegion.radius);
|
||||
this(ellipsoidRegion.world, ellipsoidRegion.center, ellipsoidRegion.getRadius());
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -63,7 +63,7 @@ public EllipsoidRegionSelector(RegionSelector oldSelector) {
|
||||
|
||||
BlockVector pos1 = oldRegion.getMinimumPoint().toBlockVector();
|
||||
BlockVector pos2 = oldRegion.getMaximumPoint().toBlockVector();
|
||||
|
||||
|
||||
Vector center = pos1.add(pos2).divide(2).floor();
|
||||
region.setCenter(center);
|
||||
region.setRadius(pos2.subtract(center));
|
||||
|
Loading…
Reference in New Issue
Block a user