forked from nalc/homedecor_modpack
Fix max_hear_distance for sound toilet!
This commit is contained in:
parent
7a23751de4
commit
354507f98f
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
local S = homedecor.gettext
|
local S = homedecor.gettext
|
||||||
|
|
||||||
minetest.register_node("homedecor:toilet", {
|
minetest.register_node("homedecor:toilet", {
|
||||||
@ -65,7 +64,7 @@ minetest.register_node("homedecor:toilet_open", {
|
|||||||
on_punch = function (pos, node, puncher)
|
on_punch = function (pos, node, puncher)
|
||||||
node.name = "homedecor:toilet"
|
node.name = "homedecor:toilet"
|
||||||
minetest.set_node(pos, node)
|
minetest.set_node(pos, node)
|
||||||
minetest.sound_play({name="homedecor_toilet_flush", pos=pos,})
|
minetest.sound_play({name="homedecor_toilet_flush", pos=pos, max_hear_distance=5,})
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user