From 0b1d09ff4f4e92986f6abdbc57db97c18707196a Mon Sep 17 00:00:00 2001 From: sapier Date: Thu, 3 Jan 2013 17:59:28 +0000 Subject: Fix buttons not working for Lua-triggered formspecs --- doc/lua_api.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/lua_api.txt b/doc/lua_api.txt index b0c1b41a3..94fc78b2e 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -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:" naming convention ^ formspec: formspec to display Item handling: -- cgit v1.2.3