From b77b550e5615bac9202e698831fa6c2ed6e0e792 Mon Sep 17 00:00:00 2001 From: boy0001 Date: Tue, 11 Aug 2015 07:32:59 +1000 Subject: [PATCH] Fixes #534 --- .../plot/generator/HybridPlotManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/intellectualcrafters/plot/generator/HybridPlotManager.java b/src/main/java/com/intellectualcrafters/plot/generator/HybridPlotManager.java index 4be2b347c..744be69d8 100644 --- a/src/main/java/com/intellectualcrafters/plot/generator/HybridPlotManager.java +++ b/src/main/java/com/intellectualcrafters/plot/generator/HybridPlotManager.java @@ -90,12 +90,12 @@ public class HybridPlotManager extends ClassicPlotManager { public void createSchemAbs(HybridPlotWorld hpw, Location pos1, Location pos2, int height, boolean clear) { final int size = hpw.SIZE; for (int x = pos1.getX(); x <= pos2.getX(); x++) { - short absX = (short) ((x - hpw.ROAD_OFFSET_X) & (size - 1)); + short absX = (short) ((x - hpw.ROAD_OFFSET_X) % (size)); if (absX < 0) { absX += size; } for (int z = pos1.getZ(); z <= pos2.getZ(); z++) { - short absZ = (short) ((z - hpw.ROAD_OFFSET_Z) & (size - 1)); + short absZ = (short) ((z - hpw.ROAD_OFFSET_Z) % (size)); if (absZ < 0) { absZ += size; }