still v1.0.1:

- bypassing downgrade issue (unknown flags in regions.yml)
This commit is contained in:
Jascha Starke 2012-03-16 14:26:15 +01:00
parent 0f738ac018
commit fcf6b084d2

View file

@ -122,12 +122,14 @@ public class CRegionManager {
ConfigurationSection fs = rs.getConfigurationSection("flags"); ConfigurationSection fs = rs.getConfigurationSection("flags");
for (Map.Entry<String, Object> data : fs.getValues(false).entrySet()) { for (Map.Entry<String, Object> data : fs.getValues(false).entrySet()) {
Flag<?> flag = FlagList.getFlag(data.getKey()); Flag<?> flag = FlagList.getFlag(data.getKey());
if (flag != null) {
Object value = flag.unmarshal(data.getValue()); Object value = flag.unmarshal(data.getValue());
list.add(new FlagValue(flag, value)); list.add(new FlagValue(flag, value));
} }
} }
} }
} }
}
return list; return list;
} }
} }