1
0
mirror of https://github.com/luanti-org/luanti.git synced 2026-01-12 12:15:26 +01:00

check for negative width in set_width

This commit is contained in:
OgelGames
2024-04-21 01:17:37 +10:00
parent 8be77302e9
commit 181e6f0177
2 changed files with 13 additions and 3 deletions

View File

@@ -7456,6 +7456,7 @@ An `InvRef` is a reference to an inventory.
* returns `false` on error (e.g. invalid `listname` or `size`)
* `get_width(listname)`: get width of a list
* `set_width(listname, width)`: set width of list; currently used for crafting
* returns `false` on error (e.g. invalid `listname` or `width`)
* `get_stack(listname, i)`: get a copy of stack index `i` in list
* `set_stack(listname, i, stack)`: copy `stack` to index `i` in list
* `get_list(listname)`: returns full list (list of `ItemStack`s)