Reduce to 34 compiler errors

This commit is contained in:
2025-08-02 13:25:22 +02:00
parent 0287881e33
commit 598daadd33
24 changed files with 84 additions and 95 deletions
@@ -89,9 +89,9 @@ public class SkinCommand extends SWCommand {
return;
}
Region.copy(region.getMinPoint(), region.getMaxPoint(), arenaFile);
Region.copy(region.getArea().getMinPoint(false), region.getArea().getMaxPoint(false), arenaFile);
if (testblockFile != null) {
Region.copy(region.getMinPointTestblock(), region.getMaxPointTestblock(), testblockFile);
Region.copy(region.getTestblockArea().getMinPoint(false), region.getTestblockArea().getMaxPoint(false), testblockFile);
}
YAPIONObject yapionObject = new YAPIONObject();
@@ -53,11 +53,11 @@ public class BoundaryViewer implements Listener {
}
private void showRegion(Region region, Player player) {
drawCuboid(player, TrickyParticleWrapper.impl.getVillagerHappy(), region.getMinPoint(), region.getMaxPoint());
if (region.getTestblockArea().isPresent()) {
drawCuboid(player, TrickyParticleWrapper.impl.getVillagerHappy(), region.getArea().getMinPoint(false), region.getArea().getMaxPoint(false));
if (!region.getTestblockArea().isEmpty()) {
drawCuboid(player, Particle.END_ROD, region.getTestblockArea().getMinPoint(true), region.getTestblockArea().getMaxPoint(true));
}
if (region.getBuildArea().isPresent()) {
if (!region.getBuildArea().isEmpty()) {
drawCuboid(player, Particle.END_ROD, region.getBuildArea().getMinPoint(true), region.getBuildArea().getMaxPoint(true));
}
}