From 57dc8904a08b18fc53a1eb80010b037d8bfe19f2 Mon Sep 17 00:00:00 2001 From: kol0 Date: Tue, 30 Jul 2013 11:30:12 +0200 Subject: [PATCH] correction amount of energy produced I correct amount of energy produced with descripton value. --- technic/machines/hv/solar_array.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2