From 8e8c79aca20db49053a3749e7508bad8a0aaa711 Mon Sep 17 00:00:00 2001 From: stujones11 Date: Sun, 18 Feb 2018 20:24:35 +0000 Subject: [PATCH] Remove on_punch effects from admin armor, closes #131 --- shields/init.lua | 9 --------- 1 file changed, 9 deletions(-) diff --git a/shields/init.lua b/shields/init.lua index 314a3b4..5ffaf1b 100644 --- a/shields/init.lua +++ b/shields/init.lua @@ -34,15 +34,6 @@ armor:register_armor("shields:shield_admin", { description = S("Admin Shield"), inventory_image = "shields_inv_shield_admin.png", groups = {armor_shield=1000, armor_heal=100, armor_use=0, not_in_creative_inventory=1}, - on_punched = function(player, hitter, time_from_last_punch, tool_capabilities) - if type(hitter) == "userdata" then - if hitter:is_player() then - hitter:set_wielded_item("") - end - play_sound_effect(player, "default_dig_metal") - end - return false - end, }) minetest.register_alias("adminshield", "shields:shield_admin")