forked from SteamWar/SteamWar
Fix PathRegion.calculateGardenState
This commit is contained in:
+1
-1
@@ -84,7 +84,7 @@ public class PathRegion extends DynamicRegion {
|
|||||||
public void calculateGardenState() {
|
public void calculateGardenState() {
|
||||||
garden = false;
|
garden = false;
|
||||||
Set<Tile> neighbours = tile.neighboursRing().collect(Collectors.toSet());
|
Set<Tile> neighbours = tile.neighboursRing().collect(Collectors.toSet());
|
||||||
if (neighbours.size() == 8) return;
|
if (neighbours.size() != 8) return;
|
||||||
garden = neighbours.stream()
|
garden = neighbours.stream()
|
||||||
.map(DynamicRegionSystem.INSTANCE::get)
|
.map(DynamicRegionSystem.INSTANCE::get)
|
||||||
.map(Region::getType)
|
.map(Region::getType)
|
||||||
|
|||||||
Reference in New Issue
Block a user