*sigh* crafting spells work again

This commit is contained in:
yrsegal@gmail.com 2022-04-18 10:55:17 -04:00
parent 526360b1d0
commit ad6a71ac91

View file

@ -56,7 +56,7 @@ class OpMakePackagedSpell<T : ItemPackagedSpell>(val itemType: T, val cost: Int)
val (handStack) = ctx.getHeldItemToOperateOn { it.`is`(itemType) }
val spellHolder = handStack.getCapability(HexCapabilities.SPELL).resolve()
if (spellHolder.isPresent
&& spellHolder.get().patterns != null
&& spellHolder.get().patterns == null
&& itemEntity.isAlive
) {
val entityStack = itemEntity.item.copy()