Improves un-setting of NPC values #10

This commit is contained in:
2022-10-18 11:41:25 +02:00
parent 430c168de5
commit 154c17b2c6
5 changed files with 58 additions and 25 deletions

View File

@ -361,7 +361,7 @@ public class NPCSettings {
newReforgeAbleItems = (String) replaceReforgeAblePresets(newReforgeAbleItems);
for (String item : newReforgeAbleItems.split(",")) {
if (item == null || item.equalsIgnoreCase("null")) {
if (item == null || item.trim().isEmpty() || item.equalsIgnoreCase("null")) {
continue;
}
Material material = Material.matchMaterial(item.replace('-', '_'));