From 8e55860f77c684c7b0fe8198f5f40f8c2b1cead6 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sat, 23 Sep 2017 16:25:28 +1000 Subject: [PATCH] Center plot schematic --- .../intellectualcrafters/plot/generator/HybridPlotWorld.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Core/src/main/java/com/intellectualcrafters/plot/generator/HybridPlotWorld.java b/Core/src/main/java/com/intellectualcrafters/plot/generator/HybridPlotWorld.java index adc5e8d38..1c08939e7 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/generator/HybridPlotWorld.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/generator/HybridPlotWorld.java @@ -200,10 +200,14 @@ public class HybridPlotWorld extends ClassicPlotWorld { int centerShiftZ = 0; if (l3 < this.PLOT_WIDTH) { centerShiftZ = (this.PLOT_WIDTH - l3) / 2; + } else { + centerShiftZ = (PLOT_WIDTH + ROAD_WIDTH - l3) / 2; } int centerShiftX = 0; if (w3 < this.PLOT_WIDTH) { centerShiftX = (this.PLOT_WIDTH - w3) / 2; + } else { + centerShiftX = (PLOT_WIDTH + ROAD_WIDTH - w3) / 2; } int startY = minY - PLOT_HEIGHT;