mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 10:31:06 +01:00
Merge pull request 'Fixing that annoying chest open and close sounds' (#3566) from sound_tweaks into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/3566
This commit is contained in:
commit
9367c96525
1 changed files with 2 additions and 6 deletions
|
@ -72,9 +72,7 @@ minetest.register_entity("mcl_chests:chest", {
|
|||
self.players[playername] = true
|
||||
if not self.is_open then
|
||||
self:set_animation("open")
|
||||
minetest.sound_play(self.sound_prefix .. "_open", {
|
||||
pos = self.node_pos,
|
||||
})
|
||||
minetest.sound_play(self.sound_prefix .. "_open", {pos=self.node_pos, gain=0.5, max_hear_distance = 16}, true)
|
||||
self.is_open = true
|
||||
end
|
||||
end,
|
||||
|
@ -87,9 +85,7 @@ minetest.register_entity("mcl_chests:chest", {
|
|||
return
|
||||
end
|
||||
self:set_animation("close")
|
||||
minetest.sound_play(self.sound_prefix .. "_close", {
|
||||
pos = self.node_pos,
|
||||
})
|
||||
minetest.sound_play(self.sound_prefix .. "_close", {pos=self.node_pos, gain=0.3, max_hear_distance = 16}, true)
|
||||
self.is_open = false
|
||||
end
|
||||
end,
|
||||
|
|
Loading…
Reference in a new issue