Skip to content

Commit

Permalink
⚡ Ensure unmodifiable cached results
Browse files Browse the repository at this point in the history
  • Loading branch information
MrGraversen committed Oct 2, 2023
1 parent 39654f9 commit 1a33e67
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,12 @@ public Optional<RustDiagnostics> diagnostics() {

@Override
public List<FullRustPlayer> players() {
return rustPlayers.get();
return List.copyOf(rustPlayers.get());
}

@Override
public List<RustTeam> teams() {
return rustTeams.get();
return List.copyOf(rustTeams.get());
}

@Override
Expand Down

0 comments on commit 1a33e67

Please sign in to comment.