Skip to content

Commit

Permalink
Fix secondary attacks preventing knockback (#4931)
Browse files Browse the repository at this point in the history
Should figure out the purpose of that line later, for now lets just hope it was not important
  • Loading branch information
KnightMiner committed Sep 4, 2022
1 parent 1c2c78e commit 8db3a55
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ public static boolean attackEntity(IToolStackView tool, LivingEntity attackerLiv
if (targetEntity.hurtMarked && targetEntity instanceof ServerPlayer serverPlayer) {
serverPlayer.connection.send(new ClientboundSetEntityMotionPacket(targetEntity));
targetEntity.hurtMarked = false;
targetEntity.setDeltaMovement(originalTargetMotion);
// TODO: why was this needed before? targetEntity.setDeltaMovement(originalTargetMotion);
}

// play sound effects and particles
Expand Down

0 comments on commit 8db3a55

Please sign in to comment.