From: Jens Rottmann <30634967+JRottm@users.noreply.github.com> Date: Thu, 10 Aug 2017 17:01:37 +0000 (+0200) Subject: Trivial: Make furnace info text look nicer X-Git-Tag: 5.0.0~191 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d883012491d3e9ab8970ba56613af4a9036acf34;p=oweals%2Fminetest_game.git Trivial: Make furnace info text look nicer Furnace inactive (Item: Not cookable; Fuel: Empty) --> becomes --> Furnace inactive (Item: Not cookable; Fuel: Empty) --- diff --git a/mods/default/furnace.lua b/mods/default/furnace.lua index 1643d427..162ee4e9 100644 --- a/mods/default/furnace.lua +++ b/mods/default/furnace.lua @@ -208,11 +208,11 @@ local function furnace_node_timer(pos, elapsed) end local fuel_state = "Empty" - local active = "inactive " + local active = "inactive" local result = false if fuel_totaltime ~= 0 then - active = "active " + active = "active" local fuel_percent = math.floor(fuel_time / fuel_totaltime * 100) fuel_state = fuel_percent .. "%" formspec = default.get_furnace_active_formspec(fuel_percent, item_percent) @@ -229,7 +229,7 @@ local function furnace_node_timer(pos, elapsed) minetest.get_node_timer(pos):stop() end - local infotext = "Furnace " .. active .. "(Item: " .. item_state .. + local infotext = "Furnace " .. active .. "\n(Item: " .. item_state .. "; Fuel: " .. fuel_state .. ")" --