From 54529cbf542aa226976b758382762f45a03130b4 Mon Sep 17 00:00:00 2001 From: Maciej Kasatkin Date: Sun, 2 Sep 2012 03:12:24 +0200 Subject: fixes to solar panel and battery boxes not possible any longer to load many batboxes at the same time solar panels now have energy buffers too, so 1st batbox will be loaded, then the next one etc --- solar.lua | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 solar.lua (limited to 'solar.lua') diff --git a/solar.lua b/solar.lua deleted file mode 100644 index 2d397f9..0000000 --- a/solar.lua +++ /dev/null @@ -1,23 +0,0 @@ -minetest.register_abm( - {nodenames = {"technic:solar_panel"}, - interval = 1, - chance = 1, - action = function(pos, node, active_object_count, active_object_count_wider) - - local pos1={} - pos1.y=pos.y+1 - pos1.x=pos.x - pos1.z=pos.z - - local light = minetest.env:get_node_light(pos1, nil) - local meta = minetest.env:get_meta(pos) - if light == nil then light = 0 end - if light >= 12 then - meta:set_string("infotext", "Solar Panel is active ") - meta:set_float("active",1) - else - meta:set_string("infotext", "Solar Panel is inactive"); - meta:set_float("active",0) - end - end, -}) \ No newline at end of file -- cgit v1.2.3