Code tidy: Remove redundant params

This commit is contained in:
HybridDog 2016-02-27 11:41:25 +01:00
parent d6b2a39c99
commit c5bd102206
1 changed files with 4 additions and 4 deletions

View File

@ -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"