aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMetaDucky <metaducky AT gmail DOT com>2013-05-23 19:27:00 +0200
committerKahrl <kahrl@gmx.net>2013-05-26 00:35:11 +0200
commitf62ddf9022588f6c93fe6cdf2244640dd96dc186 (patch)
treeec0d8622a5eacf5ecdc65c7066833a893e535d08 /src
parent96fe1de8322a57ad82fcab3540c1eb44f74b9989 (diff)
downloadminetest-f62ddf9022588f6c93fe6cdf2244640dd96dc186.tar.gz
minetest-f62ddf9022588f6c93fe6cdf2244640dd96dc186.tar.bz2
minetest-f62ddf9022588f6c93fe6cdf2244640dd96dc186.zip
Fixed wrongly named invref:get_location() table members for nodes.
Makes the result compatible with the minetest.get_inventory(location) param.
Diffstat (limited to 'src')
-rw-r--r--src/script/lua_api/l_inventory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/lua_api/l_inventory.cpp b/src/script/lua_api/l_inventory.cpp
index 884b33e67..6dfb7a28c 100644
--- a/src/script/lua_api/l_inventory.cpp
+++ b/src/script/lua_api/l_inventory.cpp
@@ -306,10 +306,10 @@ int InvRef::l_get_location(lua_State *L)
return 1;
case InventoryLocation::NODEMETA:
lua_newtable(L);
- lua_pushstring(L, "nodemeta");
+ lua_pushstring(L, "node");
lua_setfield(L, -2, "type");
push_v3s16(L, loc.p);
- lua_setfield(L, -2, "name");
+ lua_setfield(L, -2, "pos");
return 1;
case InventoryLocation::DETACHED:
lua_newtable(L);