Modify sound arguments

This commit is contained in:
An0n3m0us 2020-08-06 18:17:09 +01:00
parent 6fe5b040c5
commit 76331929fe

View file

@ -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