mirror of
https://github.com/Dragonop/claycrafter.git
synced 2024-12-25 18:20:17 +01:00
infotext
This commit is contained in:
parent
928fbb389e
commit
c63c448da4
@ -255,7 +255,7 @@ minetest.register_abm({
|
|||||||
local item_percent = 0
|
local item_percent = 0
|
||||||
if cookable then
|
if cookable then
|
||||||
item_percent = math.floor(src_time / cooktime * 100)
|
item_percent = math.floor(src_time / cooktime * 100)
|
||||||
item_state = item_percent .. "%"
|
item_state = "In use"
|
||||||
else
|
else
|
||||||
if srclist[1]:is_empty() then
|
if srclist[1]:is_empty() then
|
||||||
item_state = "Empty"
|
item_state = "Empty"
|
||||||
@ -269,12 +269,12 @@ minetest.register_abm({
|
|||||||
if fuel_time <= fuel_totaltime and fuel_totaltime ~= 0 then
|
if fuel_time <= fuel_totaltime and 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 = "In use"
|
||||||
formspec = active_formspec(fuel_percent, item_percent)
|
formspec = active_formspec(fuel_percent, item_percent)
|
||||||
swap_node(pos, "claycrafter:claycrafter_active")
|
swap_node(pos, "claycrafter:claycrafter_active")
|
||||||
else
|
else
|
||||||
if not fuellist[1]:is_empty() then
|
if not fuellist[1]:is_empty() then
|
||||||
fuel_state = "0%"
|
fuel_state = "Yes"
|
||||||
end
|
end
|
||||||
swap_node(pos, "claycrafter:claycrafter")
|
swap_node(pos, "claycrafter:claycrafter")
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user