Skip to content

Commit 57eb906

Browse files
ogbabasofar
authored andcommittedJan 12, 2017
Add support for custom bed sounds
1 parent df19b4e commit 57eb906

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

Diff for: ‎mods/beds/api.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function beds.register_bed(name, def)
3434
is_ground_content = false,
3535
stack_max = 1,
3636
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, bed = 1},
37-
sounds = default.node_sound_wood_defaults(),
37+
sounds = def.sounds or default.node_sound_wood_defaults(),
3838
node_box = {
3939
type = "fixed",
4040
fixed = def.nodebox.bottom,
@@ -138,7 +138,7 @@ function beds.register_bed(name, def)
138138
is_ground_content = false,
139139
pointable = false,
140140
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, bed = 2},
141-
sounds = default.node_sound_wood_defaults(),
141+
sounds = def.sounds or default.node_sound_wood_defaults(),
142142
drop = name .. "_bottom",
143143
node_box = {
144144
type = "fixed",

0 commit comments

Comments
 (0)