Skip to content

Commit

Permalink
Cleanup last damage cause on reset (#1386)
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Herrera <[email protected]>
  • Loading branch information
Pablete1234 authored Aug 18, 2024
1 parent 75841b4 commit 29078d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main/java/tc/oc/pgm/match/MatchPlayerImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ public void reset() {
bukkit.setSprinting(false);
bukkit.setFlySpeed(0.1f);
bukkit.setWalkSpeed(WalkSpeedKit.BUKKIT_DEFAULT);
bukkit.setLastDamageCause(null);
PLAYER_UTILS.clearArrowsInPlayer(bukkit);
PLAYER_UTILS.setKnockbackReduction(bukkit, 0);
bukkit.setVelocity(new Vector());
Expand Down

0 comments on commit 29078d1

Please sign in to comment.