mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-21 18:11:11 +00:00
Add InvRef:is_empty(listname) and make chests/furnaces not diggable if not empty in minimal game
This commit is contained in:
parent
a149c6ecde
commit
3e419ffb38
3 changed files with 50 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue