From 13e3c180e5e1a2f6d66cdde1c3a08367d8a35057 Mon Sep 17 00:00:00 2001 From: Andreas Troelsen Date: Mon, 6 Aug 2018 01:23:26 +0200 Subject: [PATCH] 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. --- src/main/java/com/garbagemule/MobArena/ArenaMasterImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/garbagemule/MobArena/ArenaMasterImpl.java b/src/main/java/com/garbagemule/MobArena/ArenaMasterImpl.java index 6f1a75c..7e3730c 100644 --- a/src/main/java/com/garbagemule/MobArena/ArenaMasterImpl.java +++ b/src/main/java/com/garbagemule/MobArena/ArenaMasterImpl.java @@ -376,7 +376,10 @@ public class ArenaMasterImpl implements ArenaMaster private void loadClassItems(ConfigurationSection section, ArenaClass arenaClass) { List 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(",")); }