From eb5ae0ec3c2341cbf9f6db54aed1ff0112542640 Mon Sep 17 00:00:00 2001 From: boy0001 Date: Mon, 2 Feb 2015 20:06:37 +1100 Subject: [PATCH] fixed road schematics if data set in plotworld --- .../intellectualcrafters/plot/generator/HybridPlotWorld.java | 2 ++ .../java/com/intellectualcrafters/plot/generator/HybridPop.java | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/generator/HybridPlotWorld.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/generator/HybridPlotWorld.java index 48e7d3b82..9a5325dc7 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/generator/HybridPlotWorld.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/generator/HybridPlotWorld.java @@ -217,6 +217,8 @@ public class HybridPlotWorld extends PlotWorld { PlotMain.sendConsoleSenderMessage(C.PREFIX.s() + "&3 - schematic: &7false"); return; } + // Do not populate road if using schematic population + this.ROAD_BLOCK = new PlotBlock(this.ROAD_BLOCK.id, (byte) 0); DataCollection[] blocks1 = schem1.getBlockCollection(); DataCollection[] blocks2 = schem2.getBlockCollection(); diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/generator/HybridPop.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/generator/HybridPop.java index 00753a977..0e8bedcaf 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/generator/HybridPop.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/generator/HybridPop.java @@ -135,7 +135,6 @@ public class HybridPop extends BlockPopulator { HybridPlotManager manager = (HybridPlotManager) PlotMain.getPlotManager(w); RegionWrapper plot = manager.CURRENT_PLOT_CLEAR; if (plot != null) { - short sx = (short) ((X) % this.size); short sz = (short) ((Z) % this.size);