Skip to content
Snippets Groups Projects
Commit e5ebb36c authored by Paul Ouellette's avatar Paul Ouellette Committed by SmallJoker
Browse files

Furnace: Fix "output full" infotext

parent 2063fcd0
No related branches found
No related tags found
No related merge requests found
......@@ -107,6 +107,7 @@ local function furnace_node_timer(pos, elapsed)
local inv = meta:get_inventory()
local srclist, fuellist
local dst_full = false
local cookable, cooked
local fuel
......@@ -146,6 +147,8 @@ local function furnace_node_timer(pos, elapsed)
inv:set_stack("src", 1, aftercooked.items[1])
src_time = src_time - cooked.time
update = true
else
dst_full = true
end
else
-- Item could not be cooked: probably missing fuel
......@@ -195,7 +198,7 @@ local function furnace_node_timer(pos, elapsed)
local item_percent = 0
if cookable then
item_percent = math.floor(src_time / cooked.time * 100)
if item_percent > 100 then
if dst_full then
item_state = "100% (output full)"
else
item_state = item_percent .. "%"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment