forked from SteamWar/SteamWar
Fix RegionData.clear removing initialized flags
This commit is contained in:
@@ -91,11 +91,13 @@ public abstract class RegionData {
|
||||
remove.add(flag);
|
||||
}
|
||||
}
|
||||
initialize();
|
||||
properties.forEach(property -> property.set(null));
|
||||
store.saveRegion();
|
||||
|
||||
connectedRegions().forEach(region -> {
|
||||
region.getRegionData().flagMap.keySet().removeAll(remove);
|
||||
region.getRegionData().initialize();
|
||||
region.getRegionData().properties.forEach(property -> property.set(null));
|
||||
region.saveRegion();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user