From 54aa7f35dfdc800717a6b87f916fa3c218552875 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 15 May 2020 02:51:21 +0200 Subject: [PATCH] Localize DIR_DELIM --- init.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/init.lua b/init.lua index 1288129..62fe52e 100644 --- a/init.lua +++ b/init.lua @@ -3,10 +3,8 @@ local F = minetest.formspec_escape local schemedit = {} --- Directory delimeter fallback (normally comes from builtin) -if not DIR_DELIM then - DIR_DELIM = "/" -end +local DIR_DELIM = "/" + local export_path_full = table.concat({minetest.get_worldpath(), "schems"}, DIR_DELIM) -- truncated export path so the server directory structure is not exposed publicly