Fix item foci not being recognised by the spell table (#151)

This commit is contained in:
micvog authored and GitHub committed 2026-09-28 21:02:14 -04:00
1 parent 6776676ef2
commit 7fee341e50
1 file changed
+1 -2
@@ -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();
}
}