1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02:00

Add InvRef:is_empty(listname) and make chests/furnaces not diggable if not empty in minimal game

This commit is contained in:
darkrose
2012-06-03 20:37:55 +10:00
committed by Perttu Ahola
parent a149c6ecde
commit 3e419ffb38
3 changed files with 50 additions and 0 deletions

View File

@@ -926,6 +926,7 @@ Player-only: (no-op for other objects)
InvRef: Reference to an inventory
methods:
- is_empty(listname): return true if list is empty
- get_size(listname): get size of a list
- set_size(listname, size): set size of a list
- get_stack(listname, i): get a copy of stack index i in list