mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 04:05:50 -07:00
@@ -181,7 +181,7 @@ public class MemorySection implements ConfigurationSection {
|
||||
ConfigurationSection subSection = section.getConfigurationSection(node);
|
||||
if (subSection == null) {
|
||||
if (value == null) {
|
||||
// no need to create missing sub-sections if we want to remove the value:
|
||||
// no need to create missing sub-sections if we want to remove the value:
|
||||
return;
|
||||
}
|
||||
section = section.createSection(node);
|
||||
|
@@ -3,7 +3,6 @@ package org.bukkit.configuration.file;
|
||||
import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.Reader;
|
||||
import java.util.Map;
|
||||
import java.util.logging.Level;
|
||||
@@ -181,7 +180,7 @@ public class YamlConfiguration extends FileConfiguration {
|
||||
} catch (IOException ex) {
|
||||
Bukkit.getLogger().log(Level.SEVERE, "Cannot load " + file, ex);
|
||||
} catch (InvalidConfigurationException ex) {
|
||||
Bukkit.getLogger().log(Level.SEVERE, "Cannot load " + file , ex);
|
||||
Bukkit.getLogger().log(Level.SEVERE, "Cannot load " + file, ex);
|
||||
}
|
||||
|
||||
return config;
|
||||
|
Reference in New Issue
Block a user