diff --git a/src/com/me/tft_02/soulbound/config/ItemsConfig.java b/src/com/me/tft_02/soulbound/config/ItemsConfig.java index 1e560c7..34e304f 100644 --- a/src/com/me/tft_02/soulbound/config/ItemsConfig.java +++ b/src/com/me/tft_02/soulbound/config/ItemsConfig.java @@ -132,16 +132,17 @@ public class ItemsConfig extends ConfigLoader { public boolean isActionItem(ItemStack itemStack, ActionType actionType) { for (SoulbindItem soulbindItem : getSoulbindItems(actionType)) { + if (itemStack.getData().equals(soulbindItem.getMaterialData())) { if (itemStack.hasItemMeta()) { ItemMeta itemMeta = itemStack.getItemMeta(); - if (soulbindItem.getName() != null) { + if (soulbindItem.getName() != null) if (itemMeta.getDisplayName().contains(soulbindItem.getName())) if (soulbindItem.getLore() != null && !soulbindItem.getLore().isEmpty()) if (itemMeta.hasLore() && itemMeta.getLore().containsAll(soulbindItem.getLore())) return true; - } + } } }