Skip to content

Commit

Permalink
[+] Remove from queue properly
Browse files Browse the repository at this point in the history
  • Loading branch information
lrdcxdes committed Jan 8, 2024
1 parent 6f4341a commit fc71bcc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/com/tierlistmc/papi/expansion/TierlistMC.kt
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ class TierlistMC : PlaceholderExpansion(), Listener, Taskable {
}

batchPlayers.add(playerId)
queue.remove(playerId)
}

val future: CompletableFuture<List<Player>>
Expand All @@ -140,8 +141,6 @@ class TierlistMC : PlaceholderExpansion(), Listener, Taskable {

cache[player.username.lowercase()] = tiers
}

queue.removeAll(batchPlayers)
}
}
}
Expand Down

0 comments on commit fc71bcc

Please sign in to comment.