mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-11-22 20:43:43 +01:00
Remove on_punch effects from admin armor, closes #131
This commit is contained in:
parent
601fee1079
commit
8e8c79aca2
@ -34,15 +34,6 @@ armor:register_armor("shields:shield_admin", {
|
|||||||
description = S("Admin Shield"),
|
description = S("Admin Shield"),
|
||||||
inventory_image = "shields_inv_shield_admin.png",
|
inventory_image = "shields_inv_shield_admin.png",
|
||||||
groups = {armor_shield=1000, armor_heal=100, armor_use=0, not_in_creative_inventory=1},
|
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")
|
minetest.register_alias("adminshield", "shields:shield_admin")
|
||||||
|
Loading…
Reference in New Issue
Block a user