Refactor to simplify API usage and improve compatibility by replacing legacy methods and adapting to updated libraries.

Signed-off-by: Chaoscaot <max@maxsp.de>
This commit is contained in:
2026-05-16 14:08:28 +02:00
parent 2d679028c0
commit 136b0f5b97
8 changed files with 25 additions and 24 deletions
@@ -118,12 +118,12 @@ public class TowerGenerator {
ClipboardHolder ch = new ClipboardHolder(clipboard);
Operations.completeBlindly(ch.createPaste(e).to(BlockVector3.at(config.x, y, config.z)).build());
}
width = clipboard.getDimensions().getX();
depth = clipboard.getDimensions().getZ();
width = clipboard.getDimensions().x();
depth = clipboard.getDimensions().z();
currentY = y;
y += clipboard.getDimensions().getY();
height -= clipboard.getDimensions().getY();
TowerGenerator.this.height += clipboard.getDimensions().getY();
y += clipboard.getDimensions().y();
height -= clipboard.getDimensions().y();
TowerGenerator.this.height += clipboard.getDimensions().y();
} catch (IOException e) {
allSchematics.remove(schematicNode);
return;