mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-21 06:43:17 -04:00
furnace: Update for default.get_furnace_formspec().
This commit is contained in:
parent
0011049594
commit
cdeaaab172
1 changed files with 2 additions and 2 deletions
|
@ -231,7 +231,7 @@ local function furnace_node_timer(pos, elapsed)
|
|||
active = true
|
||||
local fuel_percent = 100 - math.floor(fuel_time / fuel_totaltime * 100)
|
||||
fuel_state = S("@1%", fuel_percent)
|
||||
formspec = default.get_furnace_active_formspec(fuel_percent, item_percent)
|
||||
formspec = default.get_furnace_formspec(fuel_percent, item_percent)
|
||||
swap_node(pos, "default:furnace_active")
|
||||
-- make sure timer restarts automatically
|
||||
result = true
|
||||
|
@ -239,7 +239,7 @@ local function furnace_node_timer(pos, elapsed)
|
|||
if fuellist and not fuellist[1]:is_empty() then
|
||||
fuel_state = S("@1%", 0)
|
||||
end
|
||||
formspec = default.get_furnace_inactive_formspec()
|
||||
formspec = default.get_furnace_formspec()
|
||||
swap_node(pos, "default:furnace")
|
||||
-- stop timer on the inactive furnace
|
||||
minetest.get_node_timer(pos):stop()
|
||||
|
|
Loading…
Add table
Reference in a new issue