Removed telephone from cracky group to prevent players from breaking them

This commit is contained in:
MCL Software 2022-08-29 20:47:59 -04:00 committed by GitHub
parent 94e78aa95e
commit 617d188682
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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