Hi,
So I am implementing a privileged-protected recipe system using register_craft_predict and register_on_craft. In these callbacks you get a table with 9 ItemStacks, and in my test for the empty slots in the grid I thought I would insert ItemStack(""), but the source of Mineunit says it's meant to cause an error with an empty string. I don't think my function will work without "" as the argument though. Do you know how I should proceed?
Code is here:
Hi,
So I am implementing a privileged-protected recipe system using
register_craft_predictandregister_on_craft. In these callbacks you get a table with 9 ItemStacks, and in my test for the empty slots in the grid I thought I would insertItemStack(""), but the source of Mineunit says it's meant to cause an error with an empty string. I don't think my function will work without "" as the argument though. Do you know how I should proceed?Code is here: