From 95cb0d84f08e5782300a692314a971ca76d39006 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Kriv=C3=A1cs=20Schr=C3=B8der?= Date: Wed, 29 May 2019 13:01:29 +0200 Subject: [PATCH] Fix issue with road generation during unlink Roads should always be created with respect to `current`. --- .../intellectualsites/plotsquared/plot/object/Plot.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/object/Plot.java b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/object/Plot.java index e2f83172e..1b5d6186c 100644 --- a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/object/Plot.java +++ b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/object/Plot.java @@ -949,13 +949,13 @@ public class Plot { for (Plot current : plots) { if (current.getMerged(Direction.EAST)) { manager.createRoadEast(current.area, current); - if (getMerged(Direction.SOUTH)) { + if (current.getMerged(Direction.SOUTH)) { manager.createRoadSouth(current.area, current); - if (getMerged(Direction.SOUTHEAST)) { + if (current.getMerged(Direction.SOUTHEAST)) { manager.createRoadSouthEast(current.area, current); } } - } else if (getMerged(Direction.SOUTH)) { + } else if (current.getMerged(Direction.SOUTH)) { manager.createRoadSouth(current.area, current); } }