From: Auke Kok Date: Fri, 26 Aug 2016 18:00:49 +0000 (-0700) Subject: Default/furnace: Indicate dst full X-Git-Tag: 0.4.15~100 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1d6fbe04cda32b05d7d4398f657dba36b470ae73;p=oweals%2Fminetest_game.git 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. --- diff --git a/mods/default/furnace.lua b/mods/default/furnace.lua index b5bca889..17c9280d 100644 --- a/mods/default/furnace.lua +++ b/mods/default/furnace.lua @@ -175,7 +175,11 @@ local function furnace_node_timer(pos, elapsed) local item_percent = 0 if cookable then item_percent = math.floor(src_time / cooked.time * 100) - item_state = item_percent .. "%" + if item_percent > 100 then + item_state = "100% (output full)" + else + item_state = item_percent .. "%" + end else if srclist[1]:is_empty() then item_state = "Empty"