Skip to content

Commit 1d6fbe0

Browse files
sofarparamat
authored andcommittedSep 3, 2016
Default/furnace: Indicate dst full
Indicate in the infotext when a furnace has filled up `dst` but still has fuel. The info text shows the item as 100% with added "(output full)" text, indicating that while it can cook the item, there is no place for it in the `dst`. Emptying the `dst` should make the item cook immediately and furnace resume normal operation.
1 parent 0664570 commit 1d6fbe0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎mods/default/furnace.lua

+5-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,11 @@ local function furnace_node_timer(pos, elapsed)
175175
local item_percent = 0
176176
if cookable then
177177
item_percent = math.floor(src_time / cooked.time * 100)
178-
item_state = item_percent .. "%"
178+
if item_percent > 100 then
179+
item_state = "100% (output full)"
180+
else
181+
item_state = item_percent .. "%"
182+
end
179183
else
180184
if srclist[1]:is_empty() then
181185
item_state = "Empty"

0 commit comments

Comments
 (0)
Please sign in to comment.