- Fix NH bug & Gson not liking LocalDateTime

This commit is contained in:
spacerocket62
2022-02-06 19:43:37 -08:00
parent e70a01868d
commit c2206d0079
3 changed files with 31 additions and 3 deletions

View File

@ -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());
}
}