Various fixes reccomended by the mod author

This commit is contained in:
James David Clarke
2023-12-27 16:11:05 +00:00
parent 8857680d29
commit 26a8ab3dd0
55 changed files with 396 additions and 337 deletions

View File

@ -1,39 +1,19 @@
local modpath = minetest.get_modpath("technic_worldgen")
-- Mineclone Support
stone_sounds = nil
if minetest.get_modpath("mcl_sounds") then
stone_sounds = mcl_sounds.node_sound_stone_defaults()
else
stone_sounds = default.node_sound_stone_defaults()
end
node_sounds = nil
if minetest.get_modpath("mcl_sounds") then
node_sounds = mcl_sounds.node_sound_defaults()
else
node_sounds = default.node_sound_defaults()
end
wood_sounds = nil
if minetest.get_modpath("mcl_sounds") then
wood_sounds = mcl_sounds.node_sound_wood_defaults()
else
wood_sounds = default.node_sound_wood_defaults()
end
leaves_sounds = nil
if minetest.get_modpath("mcl_sounds") then
leaves_sounds = mcl_sounds.node_sound_leaves_defaults()
else
leaves_sounds = default.node_sound_leaves_defaults()
end
sounds = minetest.get_modpath("mcl_sounds") and mcl_sounds or default
technic = rawget(_G, "technic") or {}
technic.worldgen = {
gettext = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end,
}
-- Check if mcl_core or default is installed
if not minetest.get_modpath("mcl_core") and not minetest.get_modpath("default") then
error(minetest.get_current_modname().." ".."requires mcl_core or default to be installed (please install MTG or MCL2, or compatible games)")
end
dofile(modpath.."/config.lua")
dofile(modpath.."/nodes.lua")
dofile(modpath.."/oregen.lua")