Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-25 02:20:07 +01:00
EllipsoidRegion's constructor now takes radius, not offset radius.
Dieser Commit ist enthalten in:
Ursprung
3a828c9759
Commit
0138cd7f1c
@ -59,11 +59,11 @@ public class EllipsoidRegion extends AbstractRegion {
|
|||||||
public EllipsoidRegion(LocalWorld world, Vector center, Vector radius) {
|
public EllipsoidRegion(LocalWorld world, Vector center, Vector radius) {
|
||||||
super(world);
|
super(world);
|
||||||
this.center = center;
|
this.center = center;
|
||||||
this.radius = radius;
|
setRadius(radius);
|
||||||
}
|
}
|
||||||
|
|
||||||
public EllipsoidRegion(EllipsoidRegion ellipsoidRegion) {
|
public EllipsoidRegion(EllipsoidRegion ellipsoidRegion) {
|
||||||
this(ellipsoidRegion.world, ellipsoidRegion.center, ellipsoidRegion.radius);
|
this(ellipsoidRegion.world, ellipsoidRegion.center, ellipsoidRegion.getRadius());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -63,7 +63,7 @@ public class EllipsoidRegionSelector implements RegionSelector, CUIRegion {
|
|||||||
|
|
||||||
BlockVector pos1 = oldRegion.getMinimumPoint().toBlockVector();
|
BlockVector pos1 = oldRegion.getMinimumPoint().toBlockVector();
|
||||||
BlockVector pos2 = oldRegion.getMaximumPoint().toBlockVector();
|
BlockVector pos2 = oldRegion.getMaximumPoint().toBlockVector();
|
||||||
|
|
||||||
Vector center = pos1.add(pos2).divide(2).floor();
|
Vector center = pos1.add(pos2).divide(2).floor();
|
||||||
region.setCenter(center);
|
region.setCenter(center);
|
||||||
region.setRadius(pos2.subtract(center));
|
region.setRadius(pos2.subtract(center));
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren