mirror of
https://github.com/minetest-mods/mesecons.git
synced 2025-07-02 07:40:20 +02:00
Rename/reorganize compat stuff
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
--Aliases
|
||||
|
||||
if minetest.get_modpath("default") then
|
||||
minetest.register_alias("mesecons_gamecompat:chest", "default:chest")
|
||||
minetest.register_alias("mesecons_gamecompat:chest_locked", "default:chest_locked")
|
||||
@ -13,14 +15,6 @@ if minetest.get_modpath("default") then
|
||||
minetest.register_alias("mesecons_gamecompat:steel_ingot", "default:steel_ingot")
|
||||
minetest.register_alias("mesecons_gamecompat:steelblock", "default:steelblock")
|
||||
minetest.register_alias("mesecons_gamecompat:torch", "default:torch")
|
||||
|
||||
mesecon.node_sound_defaults = default.node_sound_defaults()
|
||||
mesecon.node_sound_glass_defaults = default.node_sound_glass_defaults()
|
||||
mesecon.node_sound_leaves_defaults = default.node_sound_leaves_defaults()
|
||||
mesecon.node_sound_stone_defaults = default.node_sound_stone_defaults()
|
||||
mesecon.node_sound_wood_defaults = default.node_sound_wood_defaults()
|
||||
|
||||
mesecon.steel_block_texture = "default_steel_block.png"
|
||||
end
|
||||
|
||||
local dye_colors = {
|
||||
@ -33,10 +27,31 @@ if minetest.get_modpath("dye") then
|
||||
end
|
||||
end
|
||||
|
||||
-- Sounds
|
||||
|
||||
mesecon.node_sound = {}
|
||||
mesecon.sound_name = {}
|
||||
|
||||
if minetest.get_modpath("default") then
|
||||
mesecon.node_sound.default = default.node_sound_defaults()
|
||||
mesecon.node_sound.glass = default.node_sound_glass_defaults()
|
||||
mesecon.node_sound.leaves = default.node_sound_leaves_defaults()
|
||||
mesecon.node_sound.stone = default.node_sound_stone_defaults()
|
||||
mesecon.node_sound.wood = default.node_sound_wood_defaults()
|
||||
end
|
||||
|
||||
if minetest.get_modpath("fire") then
|
||||
mesecon.sound_name_fire = "fire_fire"
|
||||
mesecon.sound_name.fire = "fire_fire"
|
||||
end
|
||||
|
||||
if minetest.get_modpath("tnt") then
|
||||
mesecon.sound_name_explode = "tnt_explode"
|
||||
mesecon.sound_name.explode = "tnt_explode"
|
||||
end
|
||||
|
||||
-- Textures
|
||||
|
||||
mesecon.texture = {}
|
||||
|
||||
if minetest.get_modpath("default") then
|
||||
mesecon.texture.steel_block = "default_steel_block.png"
|
||||
end
|
||||
|
Reference in New Issue
Block a user