stairs - fix multiengine protocol loading of sound table
This commit is contained in:
parent
a110849017
commit
a3a271b21f
@ -11,20 +11,6 @@ function default.node_sound_wool_defaults(table)
|
|||||||
return table
|
return table
|
||||||
end
|
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 = {
|
stairs = {
|
||||||
mod = "redo",
|
mod = "redo",
|
||||||
@ -37,6 +23,20 @@ stairs = {
|
|||||||
wool = default.node_sound_wool_defaults()
|
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
|
-- cache creative
|
||||||
local creative = minetest.settings:get_bool("creative_mode")
|
local creative = minetest.settings:get_bool("creative_mode")
|
||||||
|
@ -273,7 +273,7 @@ stairs.register_all("snowblock", "default:snowblock",
|
|||||||
{crumbly = 3, cools_lava = 1, snowy = 1},
|
{crumbly = 3, cools_lava = 1, snowy = 1},
|
||||||
{"default_snow.png"},
|
{"default_snow.png"},
|
||||||
"Snow Block",
|
"Snow Block",
|
||||||
default.node_sound_snow_defaults(), true)
|
stairs.node_sound_snow_defaults(), true)
|
||||||
|
|
||||||
stairs.register_all("ice", "default:ice",
|
stairs.register_all("ice", "default:ice",
|
||||||
{cracky = 3, cools_lava = 1},
|
{cracky = 3, cools_lava = 1},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user