From 8cc20c1287e8e1946226d47bd2d5555828ace1c6 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 30 Mar 2017 02:44:22 +0200 Subject: [PATCH] Drop lever when pushed --- mods/ITEMS/REDSTONE/mesecons_walllever/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/REDSTONE/mesecons_walllever/init.lua b/mods/ITEMS/REDSTONE/mesecons_walllever/init.lua index 7eab723555..ac246770e2 100644 --- a/mods/ITEMS/REDSTONE/mesecons_walllever/init.lua +++ b/mods/ITEMS/REDSTONE/mesecons_walllever/init.lua @@ -27,7 +27,7 @@ minetest.register_node("mesecons_walllever:wall_lever_off", { fixed = {{ -2/16, -3/16, 8/16, 2/16, 3/16, 4/16 }, -- the base { -1/16, -8/16, 7/16, 1/16, 0/16, 5/16 }} -- the lever itself. }, - groups = {handy=1, dig_by_water=1}, + groups = {handy=1, dig_by_water=1, dig_by_piston=1}, is_ground_content = false, description="Lever", _doc_items_longdesc = "A lever is a redstone component which can be flipped on and off. It supplies redstone power to the blocks behind while it is in the “on” state.", @@ -70,7 +70,7 @@ minetest.register_node("mesecons_walllever:wall_lever_on", { fixed = {{ -2/16, -3/16, 8/16, 2/16, 3/16, 4/16 }, -- the base { -1/16, 0/16, 7/16, 1/16, 8/16, 5/16 }} -- the lever itself. }, - groups = {handy=1, not_in_creative_inventory = 1, dig_by_water=1}, + groups = {handy=1, not_in_creative_inventory = 1, dig_by_water=1, dig_by_piston=1}, is_ground_content = false, drop = '"mesecons_walllever:wall_lever_off" 1', description="Lever",