Skip to content

Commit

Permalink
Fixed duplications of cursor items on death
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigerpanzer02 committed Jul 13, 2024
1 parent 43bd38f commit d4393c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/plugily/projects/thebridge/arena/Arena.java
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ public void resetRound() {

public void resetPlayer(Player player) {
player.getInventory().clear();
player.setItemOnCursor(null);
player.getInventory().setArmorContents(null);
for(PotionEffect pe : player.getActivePotionEffects()) {
player.removePotionEffect(pe.getType());
Expand Down

0 comments on commit d4393c8

Please sign in to comment.