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/lua_api/l_env.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/lua_api/l_env.cpp')
-rw-r--r-- | src/script/lua_api/l_env.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/lua_api/l_env.cpp b/src/script/lua_api/l_env.cpp index 442c4b99a..14df558d3 100644 --- a/src/script/lua_api/l_env.cpp +++ b/src/script/lua_api/l_env.cpp @@ -472,7 +472,7 @@ int ModApiEnvMod::l_add_item(lua_State *L) // pos //v3f pos = checkFloatPos(L, 1); // item - ItemStack item = read_item(L, 2,getServer(L)); + ItemStack item = read_item(L, 2,getServer(L)->idef()); if(item.empty() || !item.isKnown(getServer(L)->idef())) return 0; |