Fix knowledge inscriber can't save recipes which are neither ShapedArcaneRecipe nor ShapelessArcaneRecipe (#146)

This commit is contained in:
Ressed authored and GitHub committed 2026-10-11 02:18:35 +02:00
1 parent 740adb8f8e
commit 533b54e5d1
1 file changed
+4 -2
@@ -477,8 +477,10 @@ public class ContainerKnowledgeInscriber extends ContainerWithPlayerInventory {
return;
}
} else {
// Unknown recipe type.
return;
// Dynamic recipes do not expose ingredients, so use the matched crafting grid.
for (int slotNumber = 0; slotNumber < inputs.length; ++slotNumber) {
inputs[slotNumber] = ItemStack.copyItemStack(this.craftingSlots[slotNumber].getStack());
}
}
// Get the aspect cost