From 69bd803a3221bf02672431390e672b0510695254 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Wed, 2 Jan 2013 22:53:55 +0200 Subject: Add InvRef:get_location() --- doc/lua_api.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc/lua_api.txt') diff --git a/doc/lua_api.txt b/doc/lua_api.txt index ebad1dad2..124344cad 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -1231,6 +1231,8 @@ methods: can be fully taken from the list remove_item(listname, stack): take as many items as specified from the list, returns the items that were actually removed (as an ItemStack) +- get_location() -> location compatible to minetest.get_inventory(location) + -> {type="undefined"} in case location is not known ItemStack: A stack of items. - Can be created via ItemStack(itemstack or itemstring or table or nil) -- cgit v1.2.3