From 2cdef71a1fe972e471dbfd66cc1bf138168d6a14 Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Wed, 25 Mar 2026 18:23:27 +0100 Subject: [PATCH] Fix PathRegion.calculateGardenState --- .../de/steamwar/bausystem/region/dynamic/path/PathRegion.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BauSystem/BauSystem_RegionDynamic/src/de/steamwar/bausystem/region/dynamic/path/PathRegion.java b/BauSystem/BauSystem_RegionDynamic/src/de/steamwar/bausystem/region/dynamic/path/PathRegion.java index 50e77956..7cf28877 100644 --- a/BauSystem/BauSystem_RegionDynamic/src/de/steamwar/bausystem/region/dynamic/path/PathRegion.java +++ b/BauSystem/BauSystem_RegionDynamic/src/de/steamwar/bausystem/region/dynamic/path/PathRegion.java @@ -84,7 +84,7 @@ public class PathRegion extends DynamicRegion { public void calculateGardenState() { garden = false; Set neighbours = tile.neighboursRing().collect(Collectors.toSet()); - if (neighbours.size() == 8) return; + if (neighbours.size() != 8) return; garden = neighbours.stream() .map(DynamicRegionSystem.INSTANCE::get) .map(Region::getType)