forked from SteamWar/SteamWar
Add RegionDataRepository
This commit is contained in:
+1
-3
@@ -66,9 +66,7 @@ public class DynamicRegionSystem implements RegionSystem {
|
||||
if (tile.isEmpty()) return DynamicGlobalRegion.INSTANCE;
|
||||
UUID uuid = tileMap.get(tile.get());
|
||||
if (uuid == null) return DynamicGlobalRegion.INSTANCE;
|
||||
Region region = regionMap.get(uuid);
|
||||
if (region == null) return DynamicGlobalRegion.INSTANCE;
|
||||
return region;
|
||||
return regionMap.getOrDefault(uuid, DynamicGlobalRegion.INSTANCE);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user