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.
This commit is contained in:
parent
0664570d22
commit
1d6fbe04cd
@ -175,7 +175,11 @@ local function furnace_node_timer(pos, elapsed)
|
|||||||
local item_percent = 0
|
local item_percent = 0
|
||||||
if cookable then
|
if cookable then
|
||||||
item_percent = math.floor(src_time / cooked.time * 100)
|
item_percent = math.floor(src_time / cooked.time * 100)
|
||||||
|
if item_percent > 100 then
|
||||||
|
item_state = "100% (output full)"
|
||||||
|
else
|
||||||
item_state = item_percent .. "%"
|
item_state = item_percent .. "%"
|
||||||
|
end
|
||||||
else
|
else
|
||||||
if srclist[1]:is_empty() then
|
if srclist[1]:is_empty() then
|
||||||
item_state = "Empty"
|
item_state = "Empty"
|
||||||
|
Loading…
Reference in New Issue
Block a user