craftbukkit/nms-patches/net/minecraft/server/players/UserCache.patch

21 lines
1 KiB
Diff
Raw Normal View History

2021-04-07 15:03:29 +10:00
--- a/net/minecraft/server/players/UserCache.java
+++ b/net/minecraft/server/players/UserCache.java
2025-03-26 03:05:00 +11:00
@@ -127,7 +127,7 @@
usercache_usercacheentry.setLastAccess(this.getNextOperation());
optional = Optional.of(usercache_usercacheentry.getProfile());
} else {
- optional = lookupGameProfile(this.profileRepository, s1);
+ optional = lookupGameProfile(this.profileRepository, s); // CraftBukkit - use correct case for offline players
if (optional.isPresent()) {
this.add((GameProfile) optional.get());
flag = false;
2025-03-26 03:05:00 +11:00
@@ -198,7 +198,7 @@
DateFormat dateformat = createDateFormat();
2024-04-24 01:15:00 +10:00
2025-03-26 03:05:00 +11:00
jsonarray.forEach((jsonelement) -> {
- Optional optional = readGameProfile(jsonelement, dateformat);
+ Optional<UserCache.UserCacheEntry> optional = readGameProfile(jsonelement, dateformat); // CraftBukkit - decompile error
2024-04-24 01:15:00 +10:00
2025-03-26 03:05:00 +11:00
Objects.requireNonNull(list);
optional.ifPresent(list::add);