Fix some issues with minetest.clear_craft (#8712)
authorPaul Ouellette <oue.paul18@gmail.com>
Sat, 10 Aug 2019 21:28:00 +0000 (17:28 -0400)
committersfan5 <sfan5@live.de>
Sat, 10 Aug 2019 21:28:00 +0000 (23:28 +0200)
commit120155f312cb1977b9a325acc7c7679103eb3800
tree1cb5c07716be7d4579fa614555f9d74c12ea07eb
parent86d7f84b899a507e979f1845f2057cce6f84e743
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()
games/minimal/mods/test/crafting.lua [new file with mode: 0644]
games/minimal/mods/test/init.lua
games/minimal/mods/test/player.lua
src/craftdef.cpp
src/craftdef.h
src/script/lua_api/l_craft.cpp