diff options
Diffstat (limited to 'util_execute_cycle.lua')
-rw-r--r-- | util_execute_cycle.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util_execute_cycle.lua b/util_execute_cycle.lua index d5f23f0..9b0bf97 100644 --- a/util_execute_cycle.lua +++ b/util_execute_cycle.lua @@ -107,7 +107,7 @@ digtron.execute_dig_cycle = function(pos, clicker) local facing = minetest.get_node(pos).param2 local dir = minetest.facedir_to_dir(facing) local fuel_burning = meta:get_float("fuel_burning") -- get amount of burned fuel left over from last cycle - local status_text = S("Heat remaining in controller furnace: @1", math.max(0, fuel_burning)) + local status_text = S("Heat remaining in controller furnace: @1", math.floor(math.max(0, fuel_burning))) local exhaust = meta:get_int("on_coal") local layout = DigtronLayout.create(pos, clicker) @@ -346,7 +346,7 @@ digtron.execute_dig_cycle = function(pos, clicker) meta:set_float("fuel_burning", fuel_burning) meta:set_int("on_coal", exhaust) - status_text = status_text .. S("Heat remaining in controller furnace: @1", math.max(0, fuel_burning)) + status_text = status_text .. S("Heat remaining in controller furnace: @1", math.floor(math.max(0, fuel_burning))) -- Eyecandy for _, particles in pairs(particle_systems) do @@ -423,7 +423,7 @@ digtron.execute_downward_dig_cycle = function(pos, clicker) local facing = minetest.get_node(pos).param2 local dir = digtron.facedir_to_down_dir(facing) local fuel_burning = meta:get_float("fuel_burning") -- get amount of burned fuel left over from last cycle - local status_text = S("Heat remaining in controller furnace: @1", math.max(0, fuel_burning)) + local status_text = S("Heat remaining in controller furnace: @1", math.floor(math.max(0, fuel_burning))) local exhaust = meta:get_int("on_coal") local layout = DigtronLayout.create(pos, clicker) @@ -542,7 +542,7 @@ digtron.execute_downward_dig_cycle = function(pos, clicker) meta:set_float("fuel_burning", fuel_burning) meta:set_int("on_coal", exhaust) - status_text = status_text .. S("Heat remaining in controller furnace: @1", math.max(0, fuel_burning)) + status_text = status_text .. S("Heat remaining in controller furnace: @1", math.floor(math.max(0, fuel_burning))) -- Eyecandy for _, particles in pairs(particle_systems) do |