Skip to content

Commit

Permalink
Make chestplates no longer take damage from unarmed
Browse files Browse the repository at this point in the history
  • Loading branch information
KnightMiner committed Sep 19, 2022
1 parent 9729035 commit c8ebcf4
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -386,10 +386,12 @@ public static boolean attackEntity(IToolStackView tool, LivingEntity attackerLiv
}

// damage the tool
if (!tool.hasTag(TinkerTags.Items.MELEE_PRIMARY)) {
durabilityLost *= 2;
if (!tool.hasTag(TinkerTags.Items.UNARMED)) {
if (!tool.hasTag(TinkerTags.Items.MELEE_PRIMARY)) {
durabilityLost *= 2;
}
ToolDamageUtil.damageAnimated(tool, durabilityLost, attackerLiving);
}
ToolDamageUtil.damageAnimated(tool, durabilityLost, attackerLiving);

return true;
}
Expand Down

0 comments on commit c8ebcf4

Please sign in to comment.