mirror of
https://github.com/minetest-mods/moreores.git
synced 2024-11-15 23:00:35 +01:00
Fix for sounds
This commit is contained in:
parent
2811f666b4
commit
9c1fbfeb9a
11
init.lua
11
init.lua
|
@ -29,12 +29,15 @@ local is_mcl_core_present = minetest.get_modpath("mcl_core") ~= nil
|
|||
local is_mcl_sounds_present = minetest.get_modpath("mcl_sounds") ~= nil
|
||||
local is_mcl_copper_present = minetest.registered_items["mcl_copper:copper_ingot"] ~= nil
|
||||
|
||||
local default_stone_sounds = nil
|
||||
local default_metal_sounds = nil
|
||||
|
||||
if is_mcl_sounds_present then
|
||||
local default_stone_sounds = mcl_sounds.node_sound_stone_defaults()
|
||||
local default_metal_sounds = mcl_sounds.node_sound_metal_defaults()
|
||||
default_stone_sounds = mcl_sounds.node_sound_stone_defaults()
|
||||
default_metal_sounds = mcl_sounds.node_sound_metal_defaults()
|
||||
else
|
||||
local default_stone_sounds = default.node_sound_stone_defaults()
|
||||
local default_metal_sounds = default.node_sound_metal_defaults()
|
||||
default_stone_sounds = default.node_sound_stone_defaults()
|
||||
default_metal_sounds = default.node_sound_metal_defaults()
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user