mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-26 04:25:21 +01:00
Make the class items node consistent with the rest.
Supposedly, this doesn't actually do much, but the code now looks like the rest of the "string or string list" parsing.
This commit is contained in:
parent
951e83cc55
commit
13e3c180e5
@ -376,7 +376,10 @@ public class ArenaMasterImpl implements ArenaMaster
|
||||
private void loadClassItems(ConfigurationSection section, ArenaClass arenaClass) {
|
||||
List<String> items = section.getStringList("items");
|
||||
if (items == null || items.isEmpty()) {
|
||||
String value = section.getString("items", "");
|
||||
String value = section.getString("items", null);
|
||||
if (value == null || value.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
items = Arrays.asList(value.split(","));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user