aboutsummaryrefslogtreecommitdiff
path: root/builtin/client/util.lua
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2020-11-28 20:13:20 +0100
committerElias Fleckenstein <eliasfleckenstein@web.de>2020-11-28 20:13:20 +0100
commit5bead7daaf1782ecb142a57ac57bd8ba405ba150 (patch)
tree0b45d1b643ff4f44d3e8e9949e00f06c93811531 /builtin/client/util.lua
parentf825cf0e35966869fe22ae0629a1c7256160add4 (diff)
downloaddragonfireclient-5bead7daaf1782ecb142a57ac57bd8ba405ba150.tar.xz
Added minetest.close_formspec
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