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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user