aboutsummaryrefslogtreecommitdiff
path: root/games/minimal/mods/test/init.lua
diff options
context:
space:
mode:
authorPaul Ouellette <oue.paul18@gmail.com>2019-08-10 17:28:00 -0400
committersfan5 <sfan5@live.de>2019-08-10 23:28:00 +0200
commit120155f312cb1977b9a325acc7c7679103eb3800 (patch)
tree1cb5c07716be7d4579fa614555f9d74c12ea07eb /games/minimal/mods/test/init.lua
parent86d7f84b899a507e979f1845f2057cce6f84e743 (diff)
downloadhax-minetest-server-120155f312cb1977b9a325acc7c7679103eb3800.tar.gz
hax-minetest-server-120155f312cb1977b9a325acc7c7679103eb3800.zip
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()
Diffstat (limited to 'games/minimal/mods/test/init.lua')
-rw-r--r--games/minimal/mods/test/init.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/games/minimal/mods/test/init.lua b/games/minimal/mods/test/init.lua
index 73fb6e6b5..4e2a51086 100644
--- a/games/minimal/mods/test/init.lua
+++ b/games/minimal/mods/test/init.lua
@@ -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")