projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96fe1de
)
Fixed wrongly named invref:get_location() table members for nodes.
author
MetaDucky
<metaducky AT gmail DOT com>
Thu, 23 May 2013 17:27:00 +0000
(19:27 +0200)
committer
Kahrl
<kahrl@gmx.net>
Sat, 25 May 2013 22:35:11 +0000
(
00:35
+0200)
Makes the result compatible with the minetest.get_inventory(location) param.
src/script/lua_api/l_inventory.cpp
patch
|
blob
|
history
diff --git
a/src/script/lua_api/l_inventory.cpp
b/src/script/lua_api/l_inventory.cpp
index 884b33e679bc2a5b32a4cf128210c81b2d64e1bc..6dfb7a28c16dfcd50653d554ce86b6b0a67e1233 100644
(file)
--- 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, "node
meta
");
+ 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);