From dbe51fe476e79affaaa7799b1a93fa016590f209 Mon Sep 17 00:00:00 2001 From: luk3yx Date: Mon, 18 Jul 2022 17:50:58 +1200 Subject: [PATCH] Swap code around --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index c7df241..f185f94 100644 --- a/init.lua +++ b/init.lua @@ -75,6 +75,8 @@ formspec_ast.modpath = modpath dofile(modpath .. '/core.lua') dofile(modpath .. '/helpers.lua') +formspec_ast.modpath, formspec_ast.minetest = nil, nil + -- Lazy load safety.lua because I don't think anything actually uses it function formspec_ast.safe_parse(...) dofile(modpath .. '/safety.lua') @@ -84,5 +86,3 @@ end function formspec_ast.safe_interpret(tree) return formspec_ast.unparse(formspec_ast.safe_parse(tree)) end - -formspec_ast.modpath, formspec_ast.minetest = nil, nil