From 7fee341e50f446b9b6e021f6bdbd30f83b0016ea Mon Sep 17 00:00:00 2001 From: micvog <41322907+micvog@users.noreply.github.com> Date: Tue, 29 Sep 2026 03:02:14 +0200 Subject: [PATCH] Fix item foci not being recognised by the spell table (#151) --- .../common/spell/simple/HomSpellRegistry.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/WayofTime/alchemicalWizardry/common/spell/simple/HomSpellRegistry.java b/src/main/java/WayofTime/alchemicalWizardry/common/spell/simple/HomSpellRegistry.java index 2fedf1cb..efe55edc 100644 --- a/src/main/java/WayofTime/alchemicalWizardry/common/spell/simple/HomSpellRegistry.java +++ b/src/main/java/WayofTime/alchemicalWizardry/common/spell/simple/HomSpellRegistry.java @@ -3,7 +3,6 @@ package WayofTime.alchemicalWizardry.common.spell.simple; import java.util.ArrayList; import java.util.List; -import net.minecraft.item.ItemBlock; import net.minecraft.item.ItemStack; public class HomSpellRegistry { @@ -22,7 +21,7 @@ public class HomSpellRegistry { for (HomSpellComponent hsc : spellList) { ItemStack item = hsc.item(); - if (item != null && item.getItem() instanceof ItemBlock && testItem.getItem() == item.getItem()) { + if (item != null && testItem.getItem() == item.getItem()) { return hsc.spell(); } }