diff options
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/configuration/MemorySection.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/configuration/MemorySection.java b/src/main/java/org/bukkit/configuration/MemorySection.java index b122f4f1..bf2cfb00 100644 --- a/src/main/java/org/bukkit/configuration/MemorySection.java +++ b/src/main/java/org/bukkit/configuration/MemorySection.java @@ -186,7 +186,11 @@ public class MemorySection implements ConfigurationSection { String key = split[split.length - 1]; if (section == this) { - map.put(key, prepForStorage(value)); + if (value == null) { + map.remove(key); + } else { + map.put(key, prepForStorage(value)); + } } else { section.set(key, value); } |