forked from SteamWar/SteamWar
Implement WG45PlotRegion
Implement WS175PlotRegion
This commit is contained in:
+1
-1
@@ -155,7 +155,7 @@ public class DynamicRegionSystem implements RegionSystem {
|
||||
}
|
||||
|
||||
public @NonNull Stream<Region> getRegionsByType(RegionType type) {
|
||||
return regionTypeMap.get(type).stream();
|
||||
return regionTypeMap.getOrDefault(type, Collections.emptySet()).stream();
|
||||
}
|
||||
|
||||
private Stream<Pair<Region, NeighbourDirection>> getNeighbours(Region region, boolean noCorners, boolean fastCache, Collection<Region> regions) {
|
||||
|
||||
Reference in New Issue
Block a user