Use ephemeral sounds
This commit is contained in:
parent
b2c75acd68
commit
c5e4ec5e27
61 changed files with 123 additions and 122 deletions
|
@ -447,7 +447,7 @@ minetest.register_abm({
|
|||
obj:set_pos(target)
|
||||
if obj:is_player() then
|
||||
mcl_worlds.dimension_change(obj, mcl_worlds.pos_to_dimension(target))
|
||||
minetest.sound_play("mcl_portals_teleport", {pos=target, gain=0.5, max_hear_distance = 16})
|
||||
minetest.sound_play("mcl_portals_teleport", {pos=target, gain=0.5, max_hear_distance = 16}, true)
|
||||
end
|
||||
|
||||
-- Enable teleportation cooloff for some seconds, to prevent back-and-forth teleportation
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue