Skip to content

Commit

Permalink
fix: Dismount player when knocked out #117
Browse files Browse the repository at this point in the history
  • Loading branch information
BlayTheNinth committed Feb 27, 2024
1 parent 5cf65b4 commit 0cfce65
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public void knockout(Player player, DamageSource source) {
}

player.stopUsingItem();
player.stopRiding();
player.removeEffect(MobEffects.REGENERATION);

revivalData.setKnockedOut(true);
Expand Down

0 comments on commit 0cfce65

Please sign in to comment.