Fix PathRegion.calculateGardenState
This commit is contained in:
@@ -84,7 +84,7 @@ public class PathRegion extends DynamicRegion {
|
||||
public void calculateGardenState() {
|
||||
garden = false;
|
||||
Set<Tile> 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)
|
||||
|
||||
Reference in New Issue
Block a user