mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-05-25 08:53:18 +00:00
Don't allow an empty list value.
This commit is contained in:
parent
44584b11c5
commit
28e069eb6b
1 changed files with 4 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue