Fix issue with road generation during unlink

Roads should always be created with respect to `current`.
This commit is contained in:
Alexander Krivács Schrøder 2019-05-29 13:01:29 +02:00 committed by Matt
parent fb478de164
commit 95cb0d84f0

View File

@ -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);
}
}