9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2026-01-06 15:51:50 +00:00

Stopped loading of token if no cosmetic is found

This commit is contained in:
Fisher
2022-03-07 10:01:36 -05:00
committed by GitHub
parent 1e69dcea89
commit 49681c7c1d

View File

@@ -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<String> commands = node.node(COMMANDS_PATH).getList(String.class);
this.cosmeticManager.addToken(new Token(itemStack, armorItem, commands));