aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_craft.cpp
AgeCommit message (Collapse)Author
2022-05-02Async environment for mods to do concurrent tasks (#11131)sfan5
2022-05-02Refactor some Lua API functions in preparation for async envsfan5
2019-08-10Fix some issues with minetest.clear_craft (#8712)Paul Ouellette
* 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()
2018-10-24clear_craft: Return false if recipe not found, don't throw error (#7804)Paramat
2018-06-30Modernize lua read (part 2 & 3): C++ templating assurance (#7410)Loïc Blot
* Modernize lua read (part 2 & 3): C++ templating assurance Implement the boolean reader Implement the string reader Also remove unused & unimplemented script_error_handler Add a reader with default value
2017-08-19Code modernization: subfolders (#6283)Loïc Blot
* Code modernization: subfolders Modernize various code on subfolders client, network, script, threading, unittests, util * empty function * default constructor/destructor * for range-based loops * use emplace_back instead of push_back * C++ STL header style * Make connection.cpp readable in a pointed place + typo
2017-04-25Fix various points reported by cppcheck (#5656)Loïc Blot
* Fix various performance issues reported by cppcheck + code style (CI) * Make CI happy with code style on master * guiFileSelectMenu: remove useless includes * some performance fixes pointed by cppcheck * remove some useless casts * TextDest: remove unused setFormSpec function * Fix various iterator post-increment reported by cppcheck
2016-08-18Script API: Make the craft recipe field 'method' consistentSmallJoker
2016-07-05Adding minetest.clear_craftFoghrye4
Modifications by est31: grammar fixes in doc + error messages and a little style fix, no functional change.
2015-07-25Fix minetest.get_(all)_craft_recipe(s) regressionest31
Since 03e0dd33a847a83d975282c6caf6b926306e7b57 the calls didn't return an output count for the recipes.
2015-06-22Fix bug when craft input isn't replacedTeTpaAka
2015-03-23Fix minetest.get_craft_recipe functionest31
Previously, calling it resulted in a crash.
2015-03-20Optimize minetest.get_(all)_craft_recipe(s)gregorycu
Signed off by: ShadowNinja, kwolekr
2014-03-15Remove lua_State parameter from LuaError::LuaErrorShadowNinja
2014-03-15Revert "Make sure we get a stacktrace for as many lua errors as possible"ShadowNinja
This reverts commit 362ef5f6ced862daa4733034810d0b07e2ad5d89. Stack tracebacks couldn't be generated in LuaError::LuaError anyway and this caused a second, empty traceback in most cases. In cases where there wasn't annother traceback the stack had already unwound and the traceback was empty.
2014-03-15Make sure we get a stacktrace for as many lua errors as possibleSfan5
2013-12-21Bugfix to get_all_craft_recipes.RealBadAngel
Indexes for empty slots shall not be skipped.
2013-12-18Handle LuaErrors in Lua -> C++ calls on LuaJITShadowNinja
2013-11-30Optimize table creationShadowNinja
2013-11-15Pass a errfunc to lua_pcall to get a tracebackShadowNinja
2013-08-14Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl
2013-05-25Move scriptapi to separate folder (by sapier)sapier
On the lua side, notably minetest.env:<function>(<args>) should now be replaced by minetest.<function>(<args>). The old way is and will stay supported for a long time. Also: Update and clean up lua_api.txt (by celeron55) Move EnvRef to lua and remove add_rat and add_firefly (by kahrl) Add separate src/util/CMakeLists.txt, other minor fixes (by kahrl)