mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 19:34:09 +01:00
65bc2541a3
By: md_5 <git@md-5.net>
38 lines
1.7 KiB
Diff
38 lines
1.7 KiB
Diff
--- a/net/minecraft/server/players/UserCache.java
|
|
+++ b/net/minecraft/server/players/UserCache.java
|
|
@@ -85,7 +85,7 @@
|
|
}
|
|
|
|
public void onProfileLookupFailed(String s1, Exception exception) {
|
|
- atomicreference.set((Object) null);
|
|
+ atomicreference.set(null); // CraftBukkit - decompile error
|
|
}
|
|
};
|
|
|
|
@@ -142,7 +142,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;
|
|
@@ -208,7 +208,7 @@
|
|
|
|
label54:
|
|
{
|
|
- ArrayList arraylist;
|
|
+ List<UserCache.UserCacheEntry> arraylist; // CraftBukkit - decompile error
|
|
|
|
try {
|
|
JsonArray jsonarray = (JsonArray) this.gson.fromJson(bufferedreader, JsonArray.class);
|
|
@@ -217,7 +217,7 @@
|
|
DateFormat dateformat = createDateFormat();
|
|
|
|
jsonarray.forEach((jsonelement) -> {
|
|
- Optional optional = readGameProfile(jsonelement, dateformat);
|
|
+ Optional<UserCache.UserCacheEntry> optional = readGameProfile(jsonelement, dateformat); // CraftBukkit - decompile error
|
|
|
|
Objects.requireNonNull(list);
|
|
optional.ifPresent(list::add);
|