From 0d1c9598a0d2a4f21dc57de32efca2dc52b6b146 Mon Sep 17 00:00:00 2001 From: orwell96 Date: Tue, 22 Nov 2016 17:15:22 +0100 Subject: Make supplying empty formspec strings close the formspec (#4737) This will only happen if the formname matches or if formname is "". --- builtin/game/misc.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'builtin/game/misc.lua') diff --git a/builtin/game/misc.lua b/builtin/game/misc.lua index 1333a75ba..040016333 100644 --- a/builtin/game/misc.lua +++ b/builtin/game/misc.lua @@ -239,3 +239,7 @@ else end +function core.close_formspec(player_name, formname) + return minetest.show_formspec(player_name, formname, "") +end + -- cgit v1.2.3