Skip to content

Commit

Permalink
Update new damage after accounting for overdamage
Browse files Browse the repository at this point in the history
  • Loading branch information
kernitus committed Mar 16, 2024
1 parent 3b9d50b commit 8dc8986
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public void onEntityDamage(EntityDamageEvent event) {
// Invulnerability will cause less damage if they attack with a stronger weapon while vulnerable
// That is, the difference in damage will be dealt, but only if new attack is stronger than previous one
// Value before overdamage will become new "last damage"
checkOverdamage(((LivingEntity) damagee), event, newDamage);
newDamage = checkOverdamage(((LivingEntity) damagee), event, newDamage);
}

if (newDamage < 0) {
Expand Down

0 comments on commit 8dc8986

Please sign in to comment.