Only grab List<String> if it's a proper list

This commit is contained in:
nossr50
2019-02-26 16:15:40 -08:00
parent 4ab5e5e925
commit 049b76f651
9 changed files with 304 additions and 320 deletions

View File

@@ -66,7 +66,7 @@ public class ItemWeightConfig extends Config {
HashSet<Material> miscItems = new HashSet<Material>();
try {
for (String item : getStringValueList(PARTY_SHAREABLES, MISC_ITEMS)) {
for (String item : getListFromNode(PARTY_SHAREABLES, MISC_ITEMS)) {
Material material = Material.getMaterial(item.toUpperCase());
if (material != null) {