From b2fddd4066b27433fb4f0aef0e35d4a450e12055 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 12 Jan 2017 00:28:34 +0100 Subject: [PATCH] Make buttons be dug by water --- mods/redstone/mesecons_button/init.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mods/redstone/mesecons_button/init.lua b/mods/redstone/mesecons_button/init.lua index 5500fffc92..ed6e009eab 100644 --- a/mods/redstone/mesecons_button/init.lua +++ b/mods/redstone/mesecons_button/init.lua @@ -37,7 +37,7 @@ minetest.register_node("mesecons_button:button_stone_off", { type = "fixed", fixed = boxes_off -- the button itself }, - groups = {dig_immediate=2, attached_node=1}, + groups = {dig_immediate=2, attached_node=1, dig_by_water=1}, description = "Stone Button", on_punch = function (pos, node) mesecon:swap_node(pos, "mesecons_button:button_stone_on") @@ -69,7 +69,7 @@ minetest.register_node("mesecons_button:button_stone_on", { type = "fixed", fixed = boxes_on -- the button itself }, - groups = {dig_immediate=2, not_in_creative_inventory=1, attached_node=1}, + groups = {dig_immediate=2, not_in_creative_inventory=1, attached_node=1, dig_by_water=1}, drop = 'mesecons_button:button_stone_off', description = "Stone Button", sounds = default.node_sound_stone_defaults(), @@ -96,7 +96,7 @@ minetest.register_node("mesecons_button:button_wood_off", { type = "fixed", fixed = boxes_off -- the button itself }, - groups = {dig_immediate=2, attached_node=1}, + groups = {dig_immediate=2, attached_node=1, dig_by_water=1}, description = "Wooden Button", on_punch = function (pos, node) mesecon:swap_node(pos, "mesecons_button:button_wood_on") @@ -128,7 +128,7 @@ minetest.register_node("mesecons_button:button_wood_on", { type = "fixed", fixed = boxes_on -- the button itself }, - groups = {dig_immediate=2, not_in_creative_inventory=1, attached_node=1}, + groups = {dig_immediate=2, not_in_creative_inventory=1, attached_node=1, dig_by_water=1}, drop = 'mesecons_button:button_wood_off', description = "Wooden Button", sounds = default.node_sound_stone_defaults(),