diff --git a/BauSystem/BauSystem_RegionFixed/src/de/steamwar/bausystem/region/fixed/FixedFlagStorage.java b/BauSystem/BauSystem_RegionFixed/src/de/steamwar/bausystem/region/fixed/FixedFlagStorage.java index 293e0121..c902f941 100644 --- a/BauSystem/BauSystem_RegionFixed/src/de/steamwar/bausystem/region/fixed/FixedFlagStorage.java +++ b/BauSystem/BauSystem_RegionFixed/src/de/steamwar/bausystem/region/fixed/FixedFlagStorage.java @@ -84,7 +84,12 @@ public class FixedFlagStorage implements FlagStorage { @Override public void clear() { - flagMap.clear(); + for (Flag flag : Flag.getFlags()) { + if (flag == Flag.TESTBLOCK) continue; + if (flag == Flag.COLOR) continue; + if (flag == Flag.CHANGED) continue; + flagMap.remove(flag); + } } @Override diff --git a/BauSystem/BauSystem_RegionFixed/src/de/steamwar/bausystem/region/fixed/FixedGlobalFlagStorage.java b/BauSystem/BauSystem_RegionFixed/src/de/steamwar/bausystem/region/fixed/FixedGlobalFlagStorage.java index 1fc4be27..69766fee 100644 --- a/BauSystem/BauSystem_RegionFixed/src/de/steamwar/bausystem/region/fixed/FixedGlobalFlagStorage.java +++ b/BauSystem/BauSystem_RegionFixed/src/de/steamwar/bausystem/region/fixed/FixedGlobalFlagStorage.java @@ -91,7 +91,12 @@ public class FixedGlobalFlagStorage implements FlagStorage { @Override public void clear() { - flagMap.clear(); + for (Flag flag : Flag.getFlags()) { + if (flag == Flag.TESTBLOCK) continue; + if (flag == Flag.COLOR) continue; + if (flag == Flag.CHANGED) continue; + flagMap.remove(flag); + } } @Override