Skip to content

Commit

Permalink
Remove unneeded null check (Player#locale is marked as @NotNull)
Browse files Browse the repository at this point in the history
  • Loading branch information
EsotericEnderman committed Aug 3, 2024
1 parent 1e68752 commit 82c7e71
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,6 @@ private String getPlayerLocale(Player player) {
}

Locale playerLocale = player.locale();

if (playerLocale == null) {
return null;
}

String localeDisplayName = playerLocale.getDisplayName();

if (!getLanguages().contains(localeDisplayName)) {
Expand Down

0 comments on commit 82c7e71

Please sign in to comment.