summaryrefslogtreecommitdiff
path: root/util_execute_cycle.lua
diff options
context:
space:
mode:
authorFaceDeer <derksenmobile@gmail.com>2017-10-12 22:53:30 -0600
committerFaceDeer <derksenmobile@gmail.com>2017-10-12 22:53:30 -0600
commitd582f106aa4f1be3bda41113a4893c39d35223a7 (patch)
tree7add8ad141d837b4287bf6a708b5426742d0c5d7 /util_execute_cycle.lua
parent65f5ac8520a286ae062824147c2f0e3b0253c8ff (diff)
finishing up technic power tap, other misc fixes
Diffstat (limited to 'util_execute_cycle.lua')
-rw-r--r--util_execute_cycle.lua8
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