Move modpath to separate variable to make it easier to add new files without merge conflicts

This commit is contained in:
teknomunk 2024-06-18 18:52:00 -05:00
parent 05c91d6282
commit 26b3a8d81c

View File

@ -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, ...)