forked from minetest-mods/mesecons
		
	Code tidy: Remove redundant params (#486)
This commit is contained in:
		| @@ -74,8 +74,8 @@ minetest.register_abm( | |||||||
| 	{nodenames = {"mesecons_solarpanel:solar_panel_off"}, | 	{nodenames = {"mesecons_solarpanel:solar_panel_off"}, | ||||||
| 	interval = 1, | 	interval = 1, | ||||||
| 	chance = 1, | 	chance = 1, | ||||||
| 	action = function(pos, node, active_object_count, active_object_count_wider) | 	action = function(pos, node) | ||||||
| 		local light = minetest.get_node_light(pos, nil) | 		local light = minetest.get_node_light(pos) | ||||||
|  |  | ||||||
| 		if light >= 12 then | 		if light >= 12 then | ||||||
| 			node.name = "mesecons_solarpanel:solar_panel_on" | 			node.name = "mesecons_solarpanel:solar_panel_on" | ||||||
| @@ -89,8 +89,8 @@ minetest.register_abm( | |||||||
| 	{nodenames = {"mesecons_solarpanel:solar_panel_on"}, | 	{nodenames = {"mesecons_solarpanel:solar_panel_on"}, | ||||||
| 	interval = 1, | 	interval = 1, | ||||||
| 	chance = 1, | 	chance = 1, | ||||||
| 	action = function(pos, node, active_object_count, active_object_count_wider) | 	action = function(pos, node) | ||||||
| 		local light = minetest.get_node_light(pos, nil) | 		local light = minetest.get_node_light(pos) | ||||||
|  |  | ||||||
| 		if light < 12 then | 		if light < 12 then | ||||||
| 			node.name = "mesecons_solarpanel:solar_panel_off" | 			node.name = "mesecons_solarpanel:solar_panel_off" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user