fix: correct variable check in schematic dimensions

- Fixes #3999
This commit is contained in:
dordsor21 2023-03-26 13:31:01 +01:00
parent 1464804c11
commit d78360d6eb
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -323,7 +323,7 @@ public class HybridPlotWorld extends ClassicPlotWorld {
short w3 = (short) d3.getX(); short w3 = (short) d3.getX();
short l3 = (short) d3.getZ(); short l3 = (short) d3.getZ();
short h3 = (short) d3.getY(); short h3 = (short) d3.getY();
if (w3 > PLOT_WIDTH || h3 > PLOT_WIDTH) { if (w3 > PLOT_WIDTH || l3 > PLOT_WIDTH) {
this.ROAD_SCHEMATIC_ENABLED = true; this.ROAD_SCHEMATIC_ENABLED = true;
} }
int centerShiftZ; int centerShiftZ;
@ -378,7 +378,7 @@ public class HybridPlotWorld extends ClassicPlotWorld {
} }
if ((schematic1 == null && schematic2 == null) || this.ROAD_WIDTH == 0) { if ((schematic1 == null && schematic2 == null) || this.ROAD_WIDTH == 0) {
if (Settings.DEBUG) { if (Settings.DEBUG) {
LOGGER.info("- schematic: false"); LOGGER.info("- road schematic: false");
} }
return; return;
} }