summaryrefslogtreecommitdiff
path: root/util_execute_cycle.lua
diff options
context:
space:
mode:
authorFaceDeer <derksenmobile@gmail.com>2017-10-10 20:33:56 -0600
committerFaceDeer <derksenmobile@gmail.com>2017-10-10 20:33:56 -0600
commit06a2ba85e3254e7d5ccb5ac2f4c56823d6a03854 (patch)
tree1975f6db5ce892446b8c4b68fe3f01487555e312 /util_execute_cycle.lua
parentf10d46d3796d390e5ac5036c8bed93c69926c1c5 (diff)
various tidies and tweaks to technic support
Diffstat (limited to 'util_execute_cycle.lua')
-rw-r--r--util_execute_cycle.lua23
1 files changed, 0 insertions, 23 deletions
diff --git a/util_execute_cycle.lua b/util_execute_cycle.lua
index 4a0e50a..fccac3d 100644
--- a/util_execute_cycle.lua
+++ b/util_execute_cycle.lua
@@ -207,9 +207,6 @@ digtron.execute_dig_cycle = function(pos, clicker)
local test_fuel_needed = test_build_fuel_cost + digging_fuel_cost - fuel_burning
local test_fuel_burned = 0
--- if test_fuel_needed > 0 then
--- test_fuel_burned = digtron.burn(layout.fuelstores, test_fuel_needed, true)
--- end
if test_fuel_needed > 0 then
-- check for the available electrical power
@@ -315,16 +312,6 @@ digtron.execute_dig_cycle = function(pos, clicker)
minetest.sound_play("buzzer", {gain=0.5, pos=pos})
status_text = S("Digtron unexpectedly failed to execute one or more build operations, likely due to an inventory error.") .. "\n"
end
-
--- -- acutally burn the fuel needed
--- local fuel_cost = digging_fuel_cost + building_fuel_cost
--- fuel_burning = fuel_burning - fuel_cost
--- if digtron.config.particle_effects then
--- table.insert(particle_systems, burn_smoke(pos, fuel_cost))
--- end
--- if fuel_burning < 0 then
--- fuel_burning = fuel_burning + digtron.burn(layout.fuelstores, -fuel_burning, false)
--- end
-- actually burn the fuel needed
fuel_burning = fuel_burning - digging_fuel_cost
@@ -522,15 +509,6 @@ digtron.execute_downward_dig_cycle = function(pos, clicker)
local status_text = ""
--- -- acutally burn the fuel needed
--- fuel_burning = fuel_burning - digging_fuel_cost
--- if digtron.config.particle_effects then
--- table.insert(particle_systems, burn_smoke(pos, digging_fuel_cost))
--- end
--- if fuel_burning < 0 then
--- fuel_burning = fuel_burning + digtron.burn(layout.fuelstores, -fuel_burning, false)
--- end
-
-- actually burn the fuel needed
fuel_burning = fuel_burning - digging_fuel_cost
if digtron.particle_effects and exhaust == 1 then
@@ -545,7 +523,6 @@ digtron.execute_downward_dig_cycle = function(pos, clicker)
end
end
-
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))