Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-08 04:20:06 +01:00
Ursprung
64442a8051
Commit
4754f660c7
@ -104,11 +104,12 @@ public class ExpandCommands {
|
|||||||
|
|
||||||
private static void expandVert(LocalSession session, Actor actor, World world) throws IncompleteRegionException {
|
private static void expandVert(LocalSession session, Actor actor, World world) throws IncompleteRegionException {
|
||||||
Region region = session.getSelection(world);
|
Region region = session.getSelection(world);
|
||||||
|
int height = world.getMaxY() - world.getMinY();
|
||||||
try {
|
try {
|
||||||
long oldSize = region.getVolume();
|
long oldSize = region.getVolume();
|
||||||
region.expand(
|
region.expand(
|
||||||
BlockVector3.at(0, (world.getMaxY() + 1), 0),
|
BlockVector3.at(0, height, 0),
|
||||||
BlockVector3.at(0, -(world.getMaxY() + 1), 0)
|
BlockVector3.at(0, -height, 0)
|
||||||
);
|
);
|
||||||
session.getRegionSelector(world).learnChanges();
|
session.getRegionSelector(world).learnChanges();
|
||||||
long newSize = region.getVolume();
|
long newSize = region.getVolume();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren