Also brings in line with upstream
Dieser Commit ist enthalten in:
dordsor21 2022-01-08 17:46:28 +00:00
Ursprung 64442a8051
Commit 4754f660c7
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B

Datei anzeigen

@ -104,11 +104,12 @@ public class ExpandCommands {
private static void expandVert(LocalSession session, Actor actor, World world) throws IncompleteRegionException {
Region region = session.getSelection(world);
int height = world.getMaxY() - world.getMinY();
try {
long oldSize = region.getVolume();
region.expand(
BlockVector3.at(0, (world.getMaxY() + 1), 0),
BlockVector3.at(0, -(world.getMaxY() + 1), 0)
BlockVector3.at(0, height, 0),
BlockVector3.at(0, -height, 0)
);
session.getRegionSelector(world).learnChanges();
long newSize = region.getVolume();