mirror of
https://github.com/minetest-mods/technic.git
synced 2025-07-04 09:10:38 +02:00
Various fixes reccomended by the mod author
This commit is contained in:
@ -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")
|
||||
|
Reference in New Issue
Block a user