mirror of
https://github.com/plexusorg/Plex.git
synced 2025-07-05 17:16:41 +00:00
- Fix NH bug & Gson not liking LocalDateTime
This commit is contained in:
@ -75,6 +75,12 @@ public class MojangUtils
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
return names.entrySet().stream().sorted(Map.Entry.comparingByValue()).collect(Collectors.toList());
|
||||
return names.entrySet().stream().sorted(Map.Entry.comparingByValue((o1, o2) -> {
|
||||
if (o1 == null || o2 == null)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
return o1.compareTo(o2);
|
||||
})).collect(Collectors.toList());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user