Skip to content
Snippets Groups Projects
Commit f62ddf90 authored by MetaDucky's avatar MetaDucky Committed by Kahrl
Browse files

Fixed wrongly named invref:get_location() table members for nodes.

Makes the result compatible with the minetest.get_inventory(location) param.
parent 96fe1de8
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment