aboutsummaryrefslogtreecommitdiff
path: root/builtin/client/util.lua
diff options
context:
space:
mode:
Diffstat (limited to 'builtin/client/util.lua')
-rw-r--r--builtin/client/util.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/builtin/client/util.lua b/builtin/client/util.lua
index 783d0ceb1..42e383c5c 100644
--- a/builtin/client/util.lua
+++ b/builtin/client/util.lua
@@ -49,4 +49,8 @@ function core.get_pointed_thing()
local def = core.get_item_def(item:get_name())
local ray = core.raycast(pos, pos2, true, core.settings:get_bool("point_liquids") or def and def.liquids_pointable)
return ray and ray:next()
-end
+end
+
+function core.close_formspec(formname)
+ return core.show_formspec(formname, "")
+end