mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-21 14:53:16 -04:00
Modify sound arguments
This commit is contained in:
parent
6fe5b040c5
commit
76331929fe
1 changed files with 2 additions and 2 deletions
|
@ -159,7 +159,7 @@ local function furnace_node_timer(pos, elapsed)
|
||||||
end
|
end
|
||||||
-- Play cooling sound
|
-- Play cooling sound
|
||||||
minetest.sound_play("default_cool_lava",
|
minetest.sound_play("default_cool_lava",
|
||||||
{pos = pos, max_hear_distance = 16, gain = 0.1})
|
{pos = pos, max_hear_distance = 16, gain = 0.1}, true)
|
||||||
else
|
else
|
||||||
-- Item could not be cooked: probably missing fuel
|
-- Item could not be cooked: probably missing fuel
|
||||||
update = true
|
update = true
|
||||||
|
@ -247,7 +247,7 @@ local function furnace_node_timer(pos, elapsed)
|
||||||
-- Play sound every 5 seconds while the furnace is active
|
-- Play sound every 5 seconds while the furnace is active
|
||||||
if timer_elapsed == 0 or (timer_elapsed+1) % 5 == 0 then
|
if timer_elapsed == 0 or (timer_elapsed+1) % 5 == 0 then
|
||||||
minetest.sound_play("default_furnace_active",
|
minetest.sound_play("default_furnace_active",
|
||||||
{pos = pos, max_hear_distance = 16, gain = 1})
|
{pos = pos, max_hear_distance = 16, gain = 1}, true)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if fuellist and not fuellist[1]:is_empty() then
|
if fuellist and not fuellist[1]:is_empty() then
|
||||||
|
|
Loading…
Add table
Reference in a new issue