Make sounds ephemeral (#521)

The handles were never used anyway
This commit is contained in:
Vitaliy
2020-08-01 16:10:14 +03:00
committed by GitHub
parent 01332a7ba1
commit c1eccba247
8 changed files with 16 additions and 24 deletions

View File

@ -66,7 +66,7 @@ function mesecon.register_movestone(name, def, is_sticky, is_vertical)
mesecon.on_dignode(pos, node)
mesecon.on_placenode(frontpos, node)
minetest.get_node_timer(frontpos):start(timer_interval)
minetest.sound_play("movestone", {pos = pos, max_hear_distance = 20, gain = 0.5,})
minetest.sound_play("movestone", { pos = pos, max_hear_distance = 20, gain = 0.5 }, true)
-- ### Step 3: If sticky, pull stack behind ###
if is_sticky then