Use ephemeral sounds
This commit is contained in:
parent
b2c75acd68
commit
c5e4ec5e27
61 changed files with 123 additions and 122 deletions
|
@ -221,7 +221,7 @@ minetest.register_entity(":__builtin:falling_node", {
|
|||
meta:from_table(self.meta)
|
||||
end
|
||||
if def.sounds and def.sounds.place and def.sounds.place.name then
|
||||
minetest.sound_play(def.sounds.place, {pos = np})
|
||||
minetest.sound_play(def.sounds.place, {pos = np}, true)
|
||||
end
|
||||
end
|
||||
else
|
||||
|
@ -258,7 +258,7 @@ minetest.register_entity(":__builtin:falling_node", {
|
|||
def._mcl_after_falling(npos3, get_falling_depth(self))
|
||||
end
|
||||
if def.sounds and def.sounds.place and def.sounds.place.name then
|
||||
minetest.sound_play(def.sounds.place, {pos = np})
|
||||
minetest.sound_play(def.sounds.place, {pos = np}, true)
|
||||
end
|
||||
end
|
||||
deal_falling_damage(self, dtime)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue