From b197d29bef365947d0f288287ebaf09fab07cd86 Mon Sep 17 00:00:00 2001 From: Jeija Date: Mon, 13 Aug 2012 13:12:19 +0200 Subject: Code cleanup, little bugfix (some conductors placed next to receptors didn't turn on) --- mesecons_switch/init.lua | 3 --- 1 file changed, 3 deletions(-) (limited to 'mesecons_switch/init.lua') diff --git a/mesecons_switch/init.lua b/mesecons_switch/init.lua index 7282e61..bca2e50 100644 --- a/mesecons_switch/init.lua +++ b/mesecons_switch/init.lua @@ -13,9 +13,6 @@ minetest.register_node("mesecons_switch:mesecon_switch_on", { groups = {dig_immediate=2,not_in_creative_inventory=1, mesecon = 2}, drop='"mesecons_switch:mesecon_switch_off" 1', description="Switch", - after_dig_node = function(pos) - mesecon:receptor_off(pos) - end }) mesecon:add_receptor_node("mesecons_switch:mesecon_switch_on") -- cgit v1.2.3