Skip to content

Commit

Permalink
remove the respin prize just given in the loop
Browse files Browse the repository at this point in the history
  • Loading branch information
ryderbelserion committed Sep 30, 2024
1 parent 6335289 commit b5aaf53
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ public void onPlayerJoin(PlayerJoinEvent event) {
if (PrizeManager.isCapped(crate, player)) {
PrizeManager.givePrize(player, crate.getPrize(this.userManager.getRespinPrize(player.getUniqueId(), crate.getFileName())), crate);

this.userManager.removeRespinPrize(player.getUniqueId(), crate.getFileName());

count++;

continue; // continue, because we should give them all the prizes on join.
Expand Down

0 comments on commit b5aaf53

Please sign in to comment.