Fix indentation and line breaks; Update credits

This commit is contained in:
An0n3m0us 2020-01-29 10:48:32 +00:00
parent 41f27d2c07
commit 4567b692d5
2 changed files with 9 additions and 3 deletions

View file

@ -339,6 +339,10 @@ sonictechtonic (CC BY 3.0):
https://www.freesound.org/people/sonictechtonic/sounds/241872/ https://www.freesound.org/people/sonictechtonic/sounds/241872/
player_damage.ogg player_damage.ogg
Dynamicell (CC BY 3.0)
http://www.freesound.org/people/Dynamicell/sounds/17548/
default_furnace_active.*.ogg
Models Models
------ ------

View file

@ -155,7 +155,8 @@ local function furnace_node_timer(pos, elapsed)
dst_full = true dst_full = true
end end
-- Play cooling sound -- Play cooling sound
minetest.sound_play("default_cool_lava", {pos = pos, max_hear_distance = 16, gain = 0.05}) minetest.sound_play("default_cool_lava",
{pos = pos, max_hear_distance = 16, gain = 0.05})
else else
-- Item could not be cooked: probably missing fuel -- Item could not be cooked: probably missing fuel
update = true update = true
@ -239,6 +240,9 @@ local function furnace_node_timer(pos, elapsed)
swap_node(pos, "default:furnace_active") swap_node(pos, "default:furnace_active")
-- make sure timer restarts automatically -- make sure timer restarts automatically
result = true result = true
-- Play sound while the furnace is active
minetest.sound_play("default_furnace_active",
{pos = pos, max_hear_distance = 16, gain = 0.1})
else else
if fuellist and not fuellist[1]:is_empty() then if fuellist and not fuellist[1]:is_empty() then
fuel_state = S("@1%", 0) fuel_state = S("@1%", 0)
@ -253,8 +257,6 @@ local function furnace_node_timer(pos, elapsed)
local infotext local infotext
if active then if active then
infotext = S("Furnace active") infotext = S("Furnace active")
-- Play sound while the furnace is active
minetest.sound_play("default_furnace_active", {pos = pos, max_hear_distance = 16, gain = 0.1})
else else
infotext = S("Furnace inactive") infotext = S("Furnace inactive")
end end