1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-15 18:57:08 +00:00

Add InvRef:get_location()

This commit is contained in:
Perttu Ahola 2013-01-02 22:53:55 +02:00
parent b7de864f2e
commit 69bd803a32
2 changed files with 40 additions and 0 deletions

View file

@ -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)