From d10efa7dc442ea6570814ac52d827ee32cc1dbe0 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 6 Apr 2020 00:43:25 +0200 Subject: [PATCH] Use TRUE emphemeral sounds --- init.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/init.lua b/init.lua index 704960c..9271ab2 100644 --- a/init.lua +++ b/init.lua @@ -60,7 +60,7 @@ function teletool.teleport(player, pointed_thing) maxsize=1.25, texture = "teletool_particle_departure.png", }) - minetest.sound_play( {name="teletool_teleport1", gain=1}, {pos=src, max_hear_distance=12}, false) + minetest.sound_play( {name="teletool_teleport1", gain=1}, {pos=src, max_hear_distance=12}, true) player:setpos(dest) minetest.add_particlespawner({ @@ -76,7 +76,7 @@ function teletool.teleport(player, pointed_thing) maxsize=1.25, texture = "teletool_particle_arrival.png", }) - minetest.after(0.5, function(dest) minetest.sound_play( {name="teletool_teleport2", gain=1}, {pos=dest, max_hear_distance=12}, false) end, dest) + minetest.after(0.5, function(dest) minetest.sound_play( {name="teletool_teleport2", gain=1}, {pos=dest, max_hear_distance=12}, true) end, dest) return true end @@ -104,7 +104,7 @@ minetest.register_tool("teletool:teletool_infinite", { failure = true end if failure then - minetest.sound_play( {name="teletool_fail", gain=0.5}, {pos=user:getpos(), max_hear_distance=4}, false) + minetest.sound_play( {name="teletool_fail", gain=0.5}, {pos=user:getpos(), max_hear_distance=4}, true) end return itemstack end, @@ -148,7 +148,7 @@ if(minetest.get_modpath("technic")) then failure = true end if failure then - minetest.sound_play( {name="teletool_fail", gain=0.5}, {pos=user:getpos(), max_hear_distance=4}, false) + minetest.sound_play( {name="teletool_fail", gain=0.5}, {pos=user:getpos(), max_hear_distance=4}, true) end return itemstack end, @@ -189,7 +189,7 @@ if(minetest.get_modpath("mana") ~= nil) then failure = true end if failure then - minetest.sound_play( {name="teletool_fail", gain=0.5}, {pos=user:getpos(), max_hear_distance=4}, false) + minetest.sound_play( {name="teletool_fail", gain=0.5}, {pos=user:getpos(), max_hear_distance=4}, true) end return itemstack end, -- 2.11.4.GIT