Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-25 18:40:05 +01:00
Allow conversion from an old region to ellipsoid when using //sel.
Dieser Commit ist enthalten in:
Ursprung
c099ae5eb5
Commit
b96ef7b620
@ -53,20 +53,21 @@ public class EllipsoidRegionSelector implements RegionSelector, CUIRegion {
|
|||||||
final EllipsoidRegionSelector ellipsoidRegionSelector = (EllipsoidRegionSelector) oldSelector;
|
final EllipsoidRegionSelector ellipsoidRegionSelector = (EllipsoidRegionSelector) oldSelector;
|
||||||
|
|
||||||
region = new EllipsoidRegion(ellipsoidRegionSelector.getIncompleteRegion());
|
region = new EllipsoidRegion(ellipsoidRegionSelector.getIncompleteRegion());
|
||||||
}/* else {
|
} else {
|
||||||
final Region oldRegion;
|
Region oldRegion = null;
|
||||||
try {
|
try {
|
||||||
oldRegion = oldSelector.getRegion();
|
oldRegion = oldSelector.getRegion();
|
||||||
} catch (IncompleteRegionException e) {
|
} catch (IncompleteRegionException e) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
pos1 = oldRegion.getMinimumPoint().toBlockVector();
|
BlockVector pos1 = oldRegion.getMinimumPoint().toBlockVector();
|
||||||
pos2 = oldRegion.getMaximumPoint().toBlockVector();
|
BlockVector pos2 = oldRegion.getMaximumPoint().toBlockVector();
|
||||||
}
|
|
||||||
|
|
||||||
region.setPos1(pos1);
|
Vector center = pos1.add(pos2).divide(2).floor();
|
||||||
region.setPos2(pos2);*/
|
region.setCenter(center);
|
||||||
|
region.setRadius(pos2.subtract(center));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean selectPrimary(Vector pos) {
|
public boolean selectPrimary(Vector pos) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren