X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=builtin%2Fclient%2Futil.lua;h=42e383c5c66e588123bdfd084c80405f59494a18;hb=0a285dd338fb415744e3fb8d6a1cc3763d796c4a;hp=783d0ceb1334266d9565589e84737440909c9402;hpb=eb6aca8b4a67ef55108231e71ff29a18a29bf5ae;p=dragonfireclient.git 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