Fix missing metal sounds for metal variant (tested in both games to work)

This commit is contained in:
minertestdude 2020-04-10 06:43:50 +02:00 committed by GitHub
parent 39c0cef782
commit 960d442f95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,9 +9,11 @@ local moditems = {}
if mineclone_path then -- means MineClone 2 is loaded, this is its core mod
moditems.iron_item = "mcl_core:iron_ingot" -- MCL iron
moditems.sounds_wood = mcl_sounds.node_sound_wood_defaults
moditems.sounds_metal = mcl_sounds.node_sound_metal_defaults
else -- fallback, assume default (MineTest Game) is loaded, otherwise it will error anyway here.
moditems.iron_item = "default:steel_ingot" -- default iron
moditems.sounds_wood = default.node_sound_wood_defaults
moditems.sounds_metal = default.node_sound_metal_defaults
end
-- load settings from minetest
@ -99,7 +101,7 @@ if pontoons_steel_pontoons then
liquids_pointable = true,
is_ground_content = false,
groups = {cracky = 1, level = 2},
sounds = moditems.sounds_wood(),
sounds = moditems.sounds_metal(),
})
if default_modpath then