Set fuel percentage to decrease

This commit is contained in:
An0n3m0us 2019-09-14 23:36:44 +01:00
parent 1f7ea89cb6
commit a21b935ddc

View file

@ -232,7 +232,7 @@ local function furnace_node_timer(pos, elapsed)
if fuel_totaltime ~= 0 then
active = true
local fuel_percent = math.floor(fuel_time / fuel_totaltime * 100)
fuel_state = S("@1%", fuel_percent)
fuel_state = S("@1%", 100-fuel_percent)
formspec = default.get_furnace_active_formspec(fuel_percent, item_percent)
swap_node(pos, "default:furnace_active")
-- make sure timer restarts automatically