Removed pointless reference

This commit is contained in:
Auxilor 2021-06-12 10:50:36 +01:00
parent baaf75be22
commit e0e463dffc

View File

@ -66,7 +66,7 @@ public class Soulbound extends EcoEnchant {
}
if (this.getConfig().getBool(EcoEnchants.CONFIG_LOCATION + "on-books")) {
if (itemStack.getItemMeta() instanceof EnchantmentStorageMeta && (((EnchantmentStorageMeta) itemStack.getItemMeta()).getStoredEnchants().containsKey(this.getEnchantment()))) {
if (itemStack.getItemMeta() instanceof EnchantmentStorageMeta && (((EnchantmentStorageMeta) itemStack.getItemMeta()).getStoredEnchants().containsKey(this))) {
soulboundItems.add(itemStack);
}
}