Skip to content

Commit f62ddf9

Browse files
MetaDuckykahrl
MetaDucky
authored andcommittedMay 25, 2013
Fixed wrongly named invref:get_location() table members for nodes.
Makes the result compatible with the minetest.get_inventory(location) param.
1 parent 96fe1de commit f62ddf9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/script/lua_api/l_inventory.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -306,10 +306,10 @@ int InvRef::l_get_location(lua_State *L)
306306
return 1;
307307
case InventoryLocation::NODEMETA:
308308
lua_newtable(L);
309-
lua_pushstring(L, "nodemeta");
309+
lua_pushstring(L, "node");
310310
lua_setfield(L, -2, "type");
311311
push_v3s16(L, loc.p);
312-
lua_setfield(L, -2, "name");
312+
lua_setfield(L, -2, "pos");
313313
return 1;
314314
case InventoryLocation::DETACHED:
315315
lua_newtable(L);

0 commit comments

Comments
 (0)
Please sign in to comment.