diff --git a/src/main/java/world/bentobox/level/Level.java b/src/main/java/world/bentobox/level/Level.java index 3b615f5..f6b3f08 100644 --- a/src/main/java/world/bentobox/level/Level.java +++ b/src/main/java/world/bentobox/level/Level.java @@ -184,6 +184,7 @@ public class Level extends Addon { } private void copyConfigSection(YamlConfiguration blockConfig, String sectionName) { + if (!getConfig().isConfigurationSection(sectionName)) return; ConfigurationSection section = getConfig().getConfigurationSection(sectionName); for (String k:section.getKeys(true)) { blockConfig.set(sectionName + "." + k, section.get(k));