Skip to content

Commit

Permalink
Fix chestplates being unable to attack (#5080)
Browse files Browse the repository at this point in the history
  • Loading branch information
KnightMiner committed Feb 5, 2023
1 parent 8d93f89 commit ae60c1a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public static LivingEntity getLivingEntity(Entity entity) {
public static boolean attackEntity(IToolStackView tool, LivingEntity attackerLiving, InteractionHand hand,
Entity targetEntity, DoubleSupplier cooldownFunction, boolean isExtraAttack, EquipmentSlot sourceSlot) {
// broken? give to vanilla
if (tool.isBroken() || !tool.hasTag(TinkerTags.Items.MELEE)) {
if (tool.isBroken() || !tool.hasTag(TinkerTags.Items.MELEE_OR_UNARMED)) {
return false;
}
// nothing to do? cancel
Expand Down

0 comments on commit ae60c1a

Please sign in to comment.