From 617d188682b71a4c389a93b8581830fe47d8149d Mon Sep 17 00:00:00 2001 From: MCL Software <89360270+MCLx86@users.noreply.github.com> Date: Mon, 29 Aug 2022 20:47:59 -0400 Subject: [PATCH] Removed telephone from cracky group to prevent players from breaking them --- mods/telephone/init.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mods/telephone/init.lua b/mods/telephone/init.lua index 0ac122f..61cbba6 100644 --- a/mods/telephone/init.lua +++ b/mods/telephone/init.lua @@ -40,7 +40,7 @@ minetest.register_node("telephone:neusonic_kxt2378", { drawtype = "nodebox", paramtype = "light", paramtype2 = "facedir", - groups = {cracky = 2}, + on_punch = function(pos, node, puncher, pointed_thing) node.name = "telephone:neusonic_kxt2378_offhook" minetest.set_node(pos, node) @@ -67,7 +67,7 @@ minetest.register_node("telephone:neusonic_kxt2378_offhook", { drawtype = "nodebox", paramtype = "light", paramtype2 = "facedir", - groups = {cracky = 2}, + on_punch = function(pos, node, puncher, pointed_thing) node.name = "telephone:neusonic_kxt2378" minetest.set_node(pos, node) @@ -95,7 +95,7 @@ minetest.register_node("telephone:neusonic_kxt2378_offhook", { --Saxom exKanto minetest.register_node("telephone:saxom_exkanto", { description = "Saxom eXkanto", - groups = {cracky = 2}, + on_punch = function(pos, node, puncher, pointed_thing) node.name = "telephone:saxom_exkanto_offhook" @@ -123,7 +123,7 @@ minetest.register_node("telephone:saxom_exkanto", { minetest.register_node("telephone:saxom_exkanto_offhook", { description = "Saxom eXkanto (Off Hook)", - groups = {cracky = 2}, + on_punch = function(pos, node, puncher, pointed_thing) if puncher:get_wielded_item():get_name() == "coconut:nut" then