summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Essentials/src/com/earth2me/essentials/Settings.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/Settings.java b/Essentials/src/com/earth2me/essentials/Settings.java
index cb642aaf5..3327849c1 100644
--- a/Essentials/src/com/earth2me/essentials/Settings.java
+++ b/Essentials/src/com/earth2me/essentials/Settings.java
@@ -459,7 +459,10 @@ public class Settings implements ISettings
{
if (config.isConfigurationSection("list"))
{
- return config.getConfigurationSection("list").getValues(false);
+ Map<String, Object> values = config.getConfigurationSection("list").getValues(false);
+ if (!values.isEmpty()) {
+ return values;
+ }
}
Map<String, Object> defaultMap = new HashMap<String, Object>();
if (config.getBoolean("sort-list-by-groups", false)) {