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 f985fcf5c5
commit 9b958bed62

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