From 3018128b4b4ad0a1e11de133ab0fe0563d76c00d Mon Sep 17 00:00:00 2001
From: Anthony Zhang <azhang9@gmail.com>
Date: Thu, 22 Mar 2012 17:52:11 -0400
Subject: Update nodes for compatibility with digging time groups.

---
 mesecons_switch/init.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'mesecons_switch/init.lua')

diff --git a/mesecons_switch/init.lua b/mesecons_switch/init.lua
index 769223c..d95178b 100644
--- a/mesecons_switch/init.lua
+++ b/mesecons_switch/init.lua
@@ -3,14 +3,14 @@
 minetest.register_node("mesecons_switch:mesecon_switch_off", {
 	tile_images = {"jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_off.png"},
 	paramtype2="facedir",
-	material = minetest.digprop_constanttime(0.5),
+	groups = {dig_immediate=2},
     	description="Switch",
 })
 
 minetest.register_node("mesecons_switch:mesecon_switch_on", {
 	tile_images = {"jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_on.png"},
 	paramtype2="facedir",
-	material = minetest.digprop_constanttime(0.5),
+	groups = {dig_immediate=2},
 	drop='"mesecons_switch:mesecon_switch_off" 1',
     	description="Switch",
 })
-- 
cgit v1.2.3