Skip to content

Commit 6942731

Browse files
committed
Fix deprecation for Locale
Replaced deprecated loading of Locale for PrettyTime
1 parent 8093ae2 commit 6942731

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/net/lapismc/afkplus/AFKPlus.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public void onEnable() {
5555
registerLuckPermsContext();
5656
checkForUpdate();
5757
fileWatcher = new LapisCoreFileWatcher(this);
58-
Locale loc = new Locale(config.getMessage("PrettyTimeLocale"));
58+
Locale loc = Locale.forLanguageTag(config.getMessage("PrettyTimeLocale"));
5959
prettyTime = new PrettyTime(loc);
6060
prettyTime.removeUnit(JustNow.class);
6161
prettyTime.removeUnit(Millisecond.class);

0 commit comments

Comments
 (0)