summaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_inventory.cpp
Commit message (Collapse)AuthorAge
* Automatic item and node colorization (#5640)Dániel Juhász2018-06-03
| | | | | | | | | | | | | | | | | * Automatic item and node colorization Now nodes with a palette yield colored item stacks, and colored items place colored nodes by default. The client predicts the colorization. * Backwards compatibility * Use nil * Style fixes * Fix code style * Document changes
* Replace luaL_reg with luaL_Reg as recent LuaJIT dropped the Lua 5.0 compat ↵Loïc Blot2017-04-08
| | | | | (#5541) We are bundling Lua5.1 which has same macro
* Add `get_wielded_item`red-0012017-03-13
|
* Allow restricting detached inventories to one playersfan52016-11-28
| | | | | | | This combats the problem of sending the hundreds of "creative" / "armor" or whatever detached invs that exist on popular servers to each and every player on join or on change of said invs.
* Player/LocalPlayer/RemotePlayer inheritance cleanup (part 2 on X)Loic Blot2016-10-08
| | | | | | | * Server/Client Environments now have an helper to cast Player object in the right type to use it * Server: use RemotePlayer everywhere and remove previous added casts * Client: use LocalPlayer where needed * Environment: remove unused functions (getPlayers(), getRandomConnectedPlayer(), getNearestConnectedPlayer())
* SAPI: Mark all Lua API functions requiring envlockkwolekr2015-10-25
|
* Clear inventory before setting listsShadowNinja2014-06-23
|
* Use "core" namespace internallyShadowNinja2014-05-08
|
* Add InvRef::get/set_lists()ShadowNinja2014-01-11
|
* Fix invalid listname and listsize not handled correctly in set_sizesapier2013-11-16
|
* Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl2013-08-14
|
* Fix some nullptr exceptions when handling invalid node inventoriesMetaDucky2013-06-01
|
* Fix minetest.get_inventory(loc) always returning nil for "node" type locMetaDucky2013-06-01
|
* Fixed wrongly named invref:get_location() table members for nodes.MetaDucky2013-05-26
| | | | Makes the result compatible with the minetest.get_inventory(location) param.
* Move scriptapi to separate folder (by sapier)sapier2013-05-25
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)