diff --git a/mods/stairs/init.lua b/mods/stairs/init.lua index 20eb8a4..e8956b2 100644 --- a/mods/stairs/init.lua +++ b/mods/stairs/init.lua @@ -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") diff --git a/mods/stairs/stairs.lua b/mods/stairs/stairs.lua index cf3ea93..0c66a10 100644 --- a/mods/stairs/stairs.lua +++ b/mods/stairs/stairs.lua @@ -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},