Skip to content

Commit 7a4d4bc

Browse files
zeunerparamat
authored andcommittedDec 18, 2018
Lua_api.txt: Document inventory sending behaviour (#7720)
1 parent e7367f0 commit 7a4d4bc

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed
 

Diff for: ‎doc/lua_api.txt

+7-2
Original file line numberDiff line numberDiff line change
@@ -1800,6 +1800,9 @@ examples.
18001800
Position and size units are inventory slots, `X` and `Y` position the formspec
18011801
element relative to the top left of the menu or container. `W` and `H` are its
18021802
width and height values.
1803+
Inventories with a `player:<name>` inventory location are only sent to the
1804+
player named `<name>`.
1805+
18031806
When displaying text which can contain formspec code, e.g. text set by a player,
18041807
use `minetest.formspec_escape`.
18051808
For coloured text you can use `minetest.colorize`.
@@ -1885,11 +1888,13 @@ Elements
18851888

18861889
### `list[<inventory location>;<list name>;<X>,<Y>;<W>,<H>;]`
18871890

1888-
* Show an inventory list
1891+
* Show an inventory list if it has been sent to the client. Nothing will
1892+
be shown if the inventory list is of size 0.
18891893

18901894
### `list[<inventory location>;<list name>;<X>,<Y>;<W>,<H>;<starting item index>]`
18911895

1892-
* Show an inventory list
1896+
* Show an inventory list if it has been sent to the client. Nothing will
1897+
be shown if the inventory list is of size 0.
18931898

18941899
### `listring[<inventory location>;<list name>]`
18951900

0 commit comments

Comments
 (0)
Please sign in to comment.