Fix RegionData.clear removing initialized flags

This commit is contained in:
2026-03-16 21:08:26 +01:00
parent 7c23af3a7d
commit 92bcfd00e2
@@ -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();
});