Skip to content

Commit

Permalink
Remove on_punch effects from admin armor, closes minetest-mods#131
Browse files Browse the repository at this point in the history
  • Loading branch information
stujones11 committed Feb 18, 2018
1 parent b9c8681 commit 4baed2c
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions shields/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,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")
Expand Down

0 comments on commit 4baed2c

Please sign in to comment.