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