From 88b37fb7e21ce66a006a82932f5882975880bd68 Mon Sep 17 00:00:00 2001 From: Luke aka SwissalpS Date: Tue, 30 Mar 2021 16:51:20 +0200 Subject: [PATCH] syntax cleanup If no global was declared, we shouldn't do so with our dummy function --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 17bdeaf..74a7ab8 100644 --- a/init.lua +++ b/init.lua @@ -3,7 +3,7 @@ -- read the readme.md for more info on origin. -- safety check in case translation function does not exist -if not minetest.global_exists('S') then S = function(s) return s end end +local S = (minetest.global_exists('S') and S) or function(s) return s end --settings postool = {