Trivial: Make furnace info text look nicer
authorJens Rottmann <30634967+JRottm@users.noreply.github.com>
Thu, 10 Aug 2017 17:01:37 +0000 (19:01 +0200)
committersofar <sofar+github@foo-projects.org>
Sun, 13 Aug 2017 07:08:43 +0000 (00:08 -0700)
Furnace inactive (Item: Not cookable; Fuel:
Empty)

--> becomes -->

Furnace inactive
(Item: Not cookable; Fuel: Empty)

mods/default/furnace.lua

index 1643d427cb8573ffe3fcf6165b826cc1650544ad..162ee4e9d6ddee4b6c8833de1be86f7c90e0296b 100644 (file)
@@ -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 .. ")"
 
        --