From 49681c7c1d950a955b55c45f55d86a300050561f Mon Sep 17 00:00:00 2001 From: Fisher <76707404+Fisher2911@users.noreply.github.com> Date: Mon, 7 Mar 2022 10:01:36 -0500 Subject: [PATCH] Stopped loading of token if no cosmetic is found --- .../io/github/fisher2911/hmccosmetics/config/TokenLoader.java | 1 + 1 file changed, 1 insertion(+) diff --git a/common/src/main/java/io/github/fisher2911/hmccosmetics/config/TokenLoader.java b/common/src/main/java/io/github/fisher2911/hmccosmetics/config/TokenLoader.java index ef402ea5..914b8866 100644 --- a/common/src/main/java/io/github/fisher2911/hmccosmetics/config/TokenLoader.java +++ b/common/src/main/java/io/github/fisher2911/hmccosmetics/config/TokenLoader.java @@ -47,6 +47,7 @@ public class TokenLoader { final ArmorItem armorItem = this.cosmeticManager.getArmorItem(id); if (armorItem == null) { this.plugin.getLogger().severe("Could not find armor item for token: " + id + " with id: " + id); + continue; } final List commands = node.node(COMMANDS_PATH).getList(String.class); this.cosmeticManager.addToken(new Token(itemStack, armorItem, commands));