Skip to content

Commit e5ebb36

Browse files
p-ouelletteSmallJoker
authored andcommittedAug 11, 2019
Furnace: Fix "output full" infotext
1 parent 2063fcd commit e5ebb36

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

Diff for: ‎mods/default/furnace.lua

+4-1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ local function furnace_node_timer(pos, elapsed)
107107

108108
local inv = meta:get_inventory()
109109
local srclist, fuellist
110+
local dst_full = false
110111

111112
local cookable, cooked
112113
local fuel
@@ -146,6 +147,8 @@ local function furnace_node_timer(pos, elapsed)
146147
inv:set_stack("src", 1, aftercooked.items[1])
147148
src_time = src_time - cooked.time
148149
update = true
150+
else
151+
dst_full = true
149152
end
150153
else
151154
-- Item could not be cooked: probably missing fuel
@@ -195,7 +198,7 @@ local function furnace_node_timer(pos, elapsed)
195198
local item_percent = 0
196199
if cookable then
197200
item_percent = math.floor(src_time / cooked.time * 100)
198-
if item_percent > 100 then
201+
if dst_full then
199202
item_state = "100% (output full)"
200203
else
201204
item_state = item_percent .. "%"

0 commit comments

Comments
 (0)
Please sign in to comment.