mirror of
https://github.com/minetest-mods/technic.git
synced 2025-06-30 07:10:56 +02:00
Make technic_worldgen loadable before technic
There was a small amount of dependency of technic_worldgen on the technic mod, for configuration loading and the top-level "technic" table. Resolve that by sharing the configuration and top-level table between the two mods. This means that technic_worldgen can be loaded before technic, permitting other mods to depend on it without depending on technic.
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
local modpath = minetest.get_modpath("technic_worldgen")
|
||||
|
||||
technic = technic or {}
|
||||
technic.worldgen = {}
|
||||
if intllib then
|
||||
technic.worldgen.gettext = intllib.Getter()
|
||||
@ -7,6 +8,7 @@ else
|
||||
technic.worldgen.gettext = function(s) return s end
|
||||
end
|
||||
|
||||
dofile(modpath.."/config.lua")
|
||||
dofile(modpath.."/nodes.lua")
|
||||
dofile(modpath.."/oregen.lua")
|
||||
dofile(modpath.."/crafts.lua")
|
||||
|
Reference in New Issue
Block a user