diff options
author | red-001 <red-001@outlook.ie> | 2017-01-31 13:18:52 +0000 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-03-13 23:56:05 +0100 |
commit | 88df9fb5b6c78df9485e8bf3750e2608bd78e14c (patch) | |
tree | d823267e244592a7603dc3baffff49818765a853 /src/script/clientscripting.cpp | |
parent | 44ca9c9cb2079fa97068adb8ee894c5ae13a9975 (diff) | |
download | minetest-88df9fb5b6c78df9485e8bf3750e2608bd78e14c.tar.gz minetest-88df9fb5b6c78df9485e8bf3750e2608bd78e14c.tar.bz2 minetest-88df9fb5b6c78df9485e8bf3750e2608bd78e14c.zip |
Add `get_wielded_item`
Diffstat (limited to 'src/script/clientscripting.cpp')
-rw-r--r-- | src/script/clientscripting.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/script/clientscripting.cpp b/src/script/clientscripting.cpp index aaed2865d..c1e308012 100644 --- a/src/script/clientscripting.cpp +++ b/src/script/clientscripting.cpp @@ -25,6 +25,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "lua_api/l_storage.h" #include "lua_api/l_sound.h" #include "lua_api/l_util.h" +#include "lua_api/l_item.h" ClientScripting::ClientScripting(Client *client): ScriptApiBase() @@ -55,4 +56,6 @@ void ClientScripting::InitializeModApi(lua_State *L, int top) ModApiClient::Initialize(L, top); ModApiSound::Initialize(L, top); ModApiStorage::Initialize(L, top); + + LuaItemStack::Register(L); } |