Rename on_punch callback to avoid potential conflict with nodes

This commit is contained in:
stujones11
2017-04-21 18:33:30 +01:00
parent a11b3302e1
commit 1af0bb60f8
3 changed files with 6 additions and 6 deletions

View File

@ -29,7 +29,7 @@ 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_punch = function(player, hitter, time_from_last_punch, tool_capabilities)
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("")