Skip to content

Commit

Permalink
hurt command: reset blockDamage too
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jan 5, 2023
1 parent f7ebcee commit db91231
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Expand Up @@ -615,6 +615,7 @@ public void damage(LivingEntity target, float amount, EntityTag source, Location
}
finally {
CraftEventFactory.entityDamage = null;
CraftEventFactory.blockDamage = null;
}
}

Expand Down
Expand Up @@ -692,6 +692,7 @@ public void damage(LivingEntity target, float amount, EntityTag source, Location
}
finally {
CraftEventFactory.entityDamage = null;
CraftEventFactory.blockDamage = null;
}
}

Expand Down
Expand Up @@ -696,6 +696,7 @@ public void damage(LivingEntity target, float amount, EntityTag source, Location
}
finally {
CraftEventFactory.entityDamage = null;
CraftEventFactory.blockDamage = null;
}
}

Expand Down

0 comments on commit db91231

Please sign in to comment.