mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Fix buttons not working for Lua-triggered formspecs
This commit is contained in:
parent
8b75736c6f
commit
0b1d09ff4f
8 changed files with 29 additions and 11 deletions
|
@ -891,8 +891,10 @@ minetest.get_inventory(location) -> InvRef
|
|||
minetest.create_detached_inventory(name, callbacks) -> InvRef
|
||||
^ callbacks: See "Detached inventory callbacks"
|
||||
^ Creates a detached inventory. If it already exists, it is cleared.
|
||||
minetest.show_formspec(playername, formspec)
|
||||
minetest.show_formspec(playername, formname, formspec)
|
||||
^ playername: name of player to show formspec
|
||||
^ formname: name passed to on_player_receive_fields callbacks
|
||||
^ should follow "modname:<whatever>" naming convention
|
||||
^ formspec: formspec to display
|
||||
|
||||
Item handling:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue