Skip to content

Commit

Permalink
Merge pull request #140 from ana-mc-almeida/fix-135
Browse files Browse the repository at this point in the history
Return list copies in ConfigManager and MessageLanguageManager
  • Loading branch information
TiagoFar78 authored Apr 11, 2024
2 parents 0c05c39 + 6433c19 commit f6efeb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ public int getDelayBetweenAnnouncements() {
}

public List<String> getAvailableLanguages() {
return _availableLanguages;
return new ArrayList<>(_availableLanguages);
}

public String getDefaultLanguage() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ public String getPlayerWasNeverInGameMessage() {
// ########################################

public List<String> getUsage() {
return _usageMessage;
return new ArrayList<>(_usageMessage);
}

public String getStartCommandUsage() {
Expand Down

0 comments on commit f6efeb0

Please sign in to comment.