mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-24 11:31:09 +01:00
Move modpath to separate variable to make it easier to add new files without merge conflicts
This commit is contained in:
parent
f985fcf5c5
commit
9b958bed62
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
||||||
mcl_util = {}
|
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*.
|
-- Updates all values in t using values from to*.
|
||||||
function table.update(t, ...)
|
function table.update(t, ...)
|
||||||
|
|
Loading…
Reference in a new issue