
Crafting dark_rune has a 50% chance to crash the game
FoxTheUnicorn opened this issue ยท 1 comments
Create pressing recipe for dark_rune has a 50% chance to crash the game.
"Cannot assign field "locked" because "this.heldItem" is null"
This is due to create requiring an output item but null is given 50% of the time.
Possible fix:
at /kubejs/server_scripts/create.js
change Line 20 from
event.recipes.create.pressing(Item.of('forbidden_arcanus:dark_rune').withChance(0.5), 'forbidden_arcanus:darkstone')
to
event.recipes.create.pressing([Item.of('minecraft:air'), Item.of('forbidden_arcanus:dark_rune').withChance(0.5)], 'forbidden_arcanus:darkstone')
This results in the wanted behavior but with an uglier recipe.