summaryrefslogtreecommitdiff
path: root/mesecons_solarpanel
diff options
context:
space:
mode:
Diffstat (limited to 'mesecons_solarpanel')
-rw-r--r--mesecons_solarpanel/init.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/mesecons_solarpanel/init.lua b/mesecons_solarpanel/init.lua
index ccc5882..861fbcd 100644
--- a/mesecons_solarpanel/init.lua
+++ b/mesecons_solarpanel/init.lua
@@ -74,8 +74,8 @@ minetest.register_abm(
{nodenames = {"mesecons_solarpanel:solar_panel_off"},
interval = 1,
chance = 1,
- action = function(pos, node, active_object_count, active_object_count_wider)
- local light = minetest.get_node_light(pos, nil)
+ action = function(pos, node)
+ local light = minetest.get_node_light(pos)
if light >= 12 then
node.name = "mesecons_solarpanel:solar_panel_on"
@@ -89,8 +89,8 @@ minetest.register_abm(
{nodenames = {"mesecons_solarpanel:solar_panel_on"},
interval = 1,
chance = 1,
- action = function(pos, node, active_object_count, active_object_count_wider)
- local light = minetest.get_node_light(pos, nil)
+ action = function(pos, node)
+ local light = minetest.get_node_light(pos)
if light < 12 then
node.name = "mesecons_solarpanel:solar_panel_off"