The mode crashes when attempting to craft ten of an item if the player inventory doesn't have enough items.
AsyncErr: Lua: Runtime error from mod 'simple_crafting' in callback on_playerReceiveFields(): /home/nathans21/.minetest/mods/simple_crafting/init.lua:268: attempt to index local 'recipe' (a nil value)
stack traceback:
/home/nathans21/.minetest/mods/simple_crafting/init.lua:268: in function 'player_craft_recipe'
/home/nathans21/.minetest/mods/simple_crafting/init.lua:311: in function </home/nathans21/.minetest/mods/simple_crafting/init.lua:245>
/home/nathans21/Minetest/bin/../builtin/common/register.lua:26: in function </home/nathans21/Minetest/bin/../builtin/common/register.lua:12>
Sadly I can't reproduce the issue but I think it's related to how I did the formspec paging for the recipes rather than the difference between the 1x and 10x craft buttons. I'll try to figure it out. Which version of MT are you using and are you using a mod with many crafting recipes or something which I could use to replicate it?
I still don't know. I added a workaround for your issue. It should now print a warning to the console and craft nothing instead of crashing.
I also noticed the ui update after crafting was bugged and fixed that.
The mode crashes when attempting to craft ten of an item if the player inventory doesn't have enough items.
AsyncErr: Lua: Runtime error from mod 'simple_crafting' in callback on_playerReceiveFields(): /home/nathans21/.minetest/mods/simple_crafting/init.lua:268: attempt to index local 'recipe' (a nil value) stack traceback: /home/nathans21/.minetest/mods/simple_crafting/init.lua:268: in function 'player_craft_recipe' /home/nathans21/.minetest/mods/simple_crafting/init.lua:311: in function </home/nathans21/.minetest/mods/simple_crafting/init.lua:245> /home/nathans21/Minetest/bin/../builtin/common/register.lua:26: in function </home/nathans21/Minetest/bin/../builtin/common/register.lua:12>
Sadly I can't reproduce the issue but I think it's related to how I did the formspec paging for the recipes rather than the difference between the 1x and 10x craft buttons. I'll try to figure it out. Which version of MT are you using and are you using a mod with many crafting recipes or something which I could use to replicate it?
Minetest 5.9.0 on Linux Mint. Using Minetest Game, and no mods save this one.
I still don't know. I added a workaround for your issue. It should now print a warning to the console and craft nothing instead of crashing. I also noticed the ui update after crafting was bugged and fixed that.