diff options
author | Zefram <zefram@fysh.org> | 2014-07-26 19:03:07 +0100 |
---|---|---|
committer | Zefram <zefram@fysh.org> | 2014-07-26 19:20:45 +0100 |
commit | 9f0b41fe713e0ff973c09e2f8e52624d40551ff9 (patch) | |
tree | 51c99ce6f8080b65962d697f726b7f5f0b6afddb /technic_worldgen/init.lua | |
parent | dd65a68ce9f494717faffc98c45814f9a9d67fa4 (diff) |
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.
Diffstat (limited to 'technic_worldgen/init.lua')
-rw-r--r-- | technic_worldgen/init.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/technic_worldgen/init.lua b/technic_worldgen/init.lua index 7e80fd3..73e9fc7 100644 --- a/technic_worldgen/init.lua +++ b/technic_worldgen/init.lua @@ -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") |