Fix /dxl invite NPE; resolves #186

This commit is contained in:
Daniel Saukel 2016-12-03 13:31:07 +01:00
parent 3801466746
commit bacbbe471f

View File

@ -302,8 +302,10 @@ public class WorldConfig extends GameRules {
FileConfiguration configFile = YamlConfiguration.loadConfiguration(file);
// Messages
for (int msgs : this.msgs.keySet()) {
configFile.set("message." + msgs, this.msgs.get(msgs));
if (msgs != null) {
for (int msgs : this.msgs.keySet()) {
configFile.set("message." + msgs, this.msgs.get(msgs));
}
}
List<String> secureObjectIds = new ArrayList<>();