fix: clear above and below plot gen heights if build heights are larger (#2153)

Dieser Commit ist enthalten in:
Jordan 2023-03-17 20:56:48 +00:00 committet von GitHub
Ursprung e32a8c40c6
Commit 7ab04317fa
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -145,6 +145,21 @@ public class FaweDelegateRegionManager {
editSession.setBlocks(fillingRegion, filling);
editSession.setBlocks(floorRegion, plotfloor);
editSession.setBlocks(airRegion, air);
if (hybridPlotWorld.getMinBuildHeight() < hybridPlotWorld.getMinGenHeight()) {
Region underneath = new CuboidRegion(
pos1.withY(hybridPlotWorld.getMinBuildHeight()),
pos2.withY(hybridPlotWorld.getMinGenHeight())
);
editSession.setBlocks(underneath, air);
}
if (hybridPlotWorld.getMaxGenHeight() < hybridPlotWorld.getMaxBuildHeight() - 1) {
Region onTop = new CuboidRegion(
pos1.withY(hybridPlotWorld.getMaxGenHeight()),
pos2.withY(hybridPlotWorld.getMaxBuildHeight() - 1)
);
editSession.setBlocks(onTop, air);
}
}
if (hybridPlotWorld.PLOT_SCHEMATIC) {