From 26b3a8d81ca20fdaacae676789a9416bba761fac Mon Sep 17 00:00:00 2001 From: teknomunk Date: Tue, 18 Jun 2024 18:52:00 -0500 Subject: [PATCH] Move modpath to separate variable to make it easier to add new files without merge conflicts --- mods/CORE/mcl_util/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mods/CORE/mcl_util/init.lua b/mods/CORE/mcl_util/init.lua index b6fd71673..6b3bd6db1 100644 --- a/mods/CORE/mcl_util/init.lua +++ b/mods/CORE/mcl_util/init.lua @@ -1,6 +1,8 @@ mcl_util = {} -dofile(minetest.get_modpath(minetest.get_current_modname()).."/roman_numerals.lua") +local modname = minetest.get_current_modname() +local modpath = minetest.get_modpath(modname) +dofile(modpath.."/roman_numerals.lua") -- Updates all values in t using values from to*. function table.update(t, ...)