Skip to content

Commit

Permalink
Fixed Issues with recieving multiple rewards
Browse files Browse the repository at this point in the history
  • Loading branch information
PeachesMLG committed Dec 28, 2024
1 parent 50b4862 commit 83e8901
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,9 @@ public List<TeamReward> getTeamRewards(Island island) {

@Override
public void addTeamReward(TeamReward teamReward) {
IridiumSkyblock.getInstance().getDatabaseManager().getTeamRewardsTableManager().addEntry(teamReward);
CompletableFuture.runAsync(() -> IridiumSkyblock.getInstance().getDatabaseManager().getTeamRewardsTableManager().save(teamReward)).thenRun(() ->
IridiumSkyblock.getInstance().getDatabaseManager().getTeamRewardsTableManager().addEntry(teamReward)
);
}

@Override
Expand Down

0 comments on commit 83e8901

Please sign in to comment.