summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsdzen <sdzen@techie.com>2013-08-06 17:08:22 -0700
committersdzen <sdzen@techie.com>2013-08-06 17:08:22 -0700
commitdf644d7f7736fce4e92a75d53f44b3df6671ceeb (patch)
tree7a762d2b77dbc6db9a4236c317860c06c2e353f0
parent3b32bf7907c20e226698a2a3af2807a7b1359661 (diff)
parent57dc8904a08b18fc53a1eb80010b037d8bfe19f2 (diff)
Merge pull request #76 from kol0/patch-2
correct amount of energy produced
-rw-r--r--technic/machines/hv/solar_array.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/technic/machines/hv/solar_array.lua b/technic/machines/hv/solar_array.lua
index 73f6ee2..c439e17 100644
--- a/technic/machines/hv/solar_array.lua
+++ b/technic/machines/hv/solar_array.lua
@@ -64,7 +64,7 @@ minetest.register_abm(
if light >= 12 and time_of_day>=0.24 and time_of_day<=0.76 and pos.y > -10 then
local charge_to_give = math.floor(light*(light*9.6+pos1.y/130*48))
if charge_to_give<0 then charge_to_give=0 end
- if charge_to_give>160 then charge_to_give=160 end
+ if charge_to_give>2880 then charge_to_give=2880 end
meta:set_string("infotext", "Solar Array is active ("..charge_to_give.."EU)")
meta:set_int("HV_EU_supply", charge_to_give)
else