mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-21 11:55:43 +02:00
Fix some issues with minetest.clear_craft (#8712)
* Fix some issues with minetest.clear_craft - Fix memory leak - Fix crafts with an output count not being cleared when clearing by input. - Fix recipe list being reversed when clearing by input. * Add CraftInput::empty()
This commit is contained in:
@@ -9,5 +9,7 @@ pseudo = PseudoRandom(13)
|
||||
assert(pseudo:next() == 22290)
|
||||
assert(pseudo:next() == 13854)
|
||||
|
||||
dofile(minetest.get_modpath("test") .. "/player.lua")
|
||||
dofile(minetest.get_modpath("test") .. "/formspec.lua")
|
||||
local modpath = minetest.get_modpath("test")
|
||||
dofile(modpath .. "/player.lua")
|
||||
dofile(modpath .. "/formspec.lua")
|
||||
dofile(modpath .. "/crafting.lua")
|
||||
|
Reference in New Issue
Block a user