Skip to content

Commit

Permalink
Merge pull request #85 from holmraven/main
Browse files Browse the repository at this point in the history
Fix concurrent exception #80 #83
  • Loading branch information
Pepperoni-Jabroni authored Jan 13, 2023
2 parents 684ec3c + 248e0c1 commit 6be58a5
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,7 @@ public static void mapAtlasServerTick(MinecraftServer server) {
// Clean up disconnected players in server tick
// since when using Disconnect event, the tick will sometimes
// re-add the Player after they disconnect
// TODO: Fix concurrent exception here?
for (String playerName : playerToActiveMapId.keySet()) {
if (!seenPlayers.contains(playerName)) {
playerToActiveMapId.remove(playerName);
}
}
playerToActiveMapId.keySet().removeIf(playerName -> !seenPlayers.contains(playerName));
}

private static void updateMapDataForPlayer(
Expand Down

0 comments on commit 6be58a5

Please sign in to comment.