diff options
author | HybridDog <3192173+HybridDog@users.noreply.github.com> | 2019-10-05 14:13:59 +0200 |
---|---|---|
committer | SmallJoker <SmallJoker@users.noreply.github.com> | 2019-10-05 14:13:59 +0200 |
commit | b7873e8e02ea3098fe8b2858a67e829bc72e54b1 (patch) | |
tree | a6c25e838c18e96d00847ee3a0657edf11f0c24b /mesecons_solarpanel | |
parent | d6b2a39c993688c5d29acc284f244657d9f6fad3 (diff) | |
download | mesecons-b7873e8e02ea3098fe8b2858a67e829bc72e54b1.tar mesecons-b7873e8e02ea3098fe8b2858a67e829bc72e54b1.tar.gz mesecons-b7873e8e02ea3098fe8b2858a67e829bc72e54b1.tar.bz2 mesecons-b7873e8e02ea3098fe8b2858a67e829bc72e54b1.tar.xz mesecons-b7873e8e02ea3098fe8b2858a67e829bc72e54b1.zip |
Code tidy: Remove redundant params (#486)
Diffstat (limited to 'mesecons_solarpanel')
-rw-r--r-- | mesecons_solarpanel/init.lua | 8 |
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" |