forked from minetest/minetest_game
Trivial: Make furnace info text look nicer
Furnace inactive (Item: Not cookable; Fuel: Empty) --> becomes --> Furnace inactive (Item: Not cookable; Fuel: Empty)
This commit is contained in:
parent
67c01a44c2
commit
d883012491
@ -208,11 +208,11 @@ local function furnace_node_timer(pos, elapsed)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local fuel_state = "Empty"
|
local fuel_state = "Empty"
|
||||||
local active = "inactive "
|
local active = "inactive"
|
||||||
local result = false
|
local result = false
|
||||||
|
|
||||||
if fuel_totaltime ~= 0 then
|
if fuel_totaltime ~= 0 then
|
||||||
active = "active "
|
active = "active"
|
||||||
local fuel_percent = math.floor(fuel_time / fuel_totaltime * 100)
|
local fuel_percent = math.floor(fuel_time / fuel_totaltime * 100)
|
||||||
fuel_state = fuel_percent .. "%"
|
fuel_state = fuel_percent .. "%"
|
||||||
formspec = default.get_furnace_active_formspec(fuel_percent, item_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()
|
minetest.get_node_timer(pos):stop()
|
||||||
end
|
end
|
||||||
|
|
||||||
local infotext = "Furnace " .. active .. "(Item: " .. item_state ..
|
local infotext = "Furnace " .. active .. "\n(Item: " .. item_state ..
|
||||||
"; Fuel: " .. fuel_state .. ")"
|
"; Fuel: " .. fuel_state .. ")"
|
||||||
|
|
||||||
--
|
--
|
||||||
|
Loading…
Reference in New Issue
Block a user