stairs - fix multiengine protocol loading of sound table

stable-5.2
mckaygerhard 2023-08-13 19:32:15 -04:00
parent 62f9150940
commit 08c2829858
2 changed files with 15 additions and 15 deletions

View File

@ -11,20 +11,6 @@ function default.node_sound_wool_defaults(table)
return table
end
-- add new 5.x snow sounds to 0.4.x client
if not minetest.has_feature("object_use_texture_alpha") then
function default.node_sound_snow_defaults(table)
table = table or {}
table.footstep = table.footstep or {name = "default_snow_footstep", gain = 0.1}
table.dug = table.dug or {name = "default_snow_footstep", gain = 0.3}
table.place = table.place or {name = "default_place_node", gain = 1.0}
return table
end
end
stairs = {
mod = "redo",
@ -37,6 +23,20 @@ stairs = {
wool = default.node_sound_wool_defaults()
}
-- add new 5.x snow sounds to 0.4.x client
--if not minetest.has_feature("object_use_texture_alpha") then
function stairs.node_sound_snow_defaults(table)
table = table or {}
table.footstep = table.footstep or {name = "default_snow_footstep", gain = 0.1}
table.dug = table.dug or {name = "default_snow_footstep", gain = 0.3}
table.place = table.place or {name = "default_place_node", gain = 1.0}
return table
end
--end
-- cache creative
local creative = minetest.settings:get_bool("creative_mode")

View File

@ -273,7 +273,7 @@ stairs.register_all("snowblock", "default:snowblock",
{crumbly = 3, cools_lava = 1, snowy = 1},
{"default_snow.png"},
"Snow Block",
default.node_sound_snow_defaults(), true)
stairs.node_sound_snow_defaults(), true)
stairs.register_all("ice", "default:ice",
{cracky = 3, cools_lava = 1},