PaperMC/nms-patches/UserCache.patch

39 lines
1.9 KiB
Diff
Raw Normal View History

--- a/net/minecraft/server/UserCache.java
+++ b/net/minecraft/server/UserCache.java
2017-05-14 04:00:00 +02:00
@@ -46,7 +46,7 @@
2016-02-29 22:32:46 +01:00
private static boolean c;
private final Map<String, UserCache.UserCacheEntry> d = Maps.newHashMap();
private final Map<UUID, UserCache.UserCacheEntry> e = Maps.newHashMap();
2016-06-09 03:43:49 +02:00
- private final Deque<GameProfile> f = Lists.newLinkedList();
+ private final Deque<GameProfile> f = new java.util.concurrent.LinkedBlockingDeque<GameProfile>(); // CraftBukkit
2016-02-29 22:32:46 +01:00
private final GameProfileRepository g;
protected final Gson b;
2016-02-29 22:32:46 +01:00
private final File h;
2018-12-13 01:00:00 +01:00
@@ -69,7 +69,7 @@
this.h = file;
GsonBuilder gsonbuilder = new GsonBuilder();
2018-12-13 01:00:00 +01:00
- gsonbuilder.registerTypeHierarchyAdapter(UserCache.UserCacheEntry.class, new UserCache.BanEntrySerializer(null));
+ gsonbuilder.registerTypeHierarchyAdapter(UserCache.UserCacheEntry.class, new UserCache.BanEntrySerializer()); // CraftBukkit - decompile error
this.b = gsonbuilder.create();
this.b();
}
@@ -120,7 +120,7 @@
date = calendar.getTime();
}
2018-12-13 01:00:00 +01:00
- UserCache.UserCacheEntry usercache_usercacheentry = new UserCache.UserCacheEntry(gameprofile, date, null);
+ UserCache.UserCacheEntry usercache_usercacheentry = new UserCache.UserCacheEntry(gameprofile, date); // CraftBukkit - decompile error
if (this.e.containsKey(uuid)) {
UserCache.UserCacheEntry usercache_usercacheentry1 = (UserCache.UserCacheEntry) this.e.get(uuid);
@@ -314,7 +314,7 @@
return null;
}
2018-12-13 01:00:00 +01:00
- return UserCache.this.new UserCacheEntry(new GameProfile(uuid, s1), date, null);
+ return UserCache.this.new UserCacheEntry(new GameProfile(uuid, s1), date); // CraftBukkit - decompile error
} else {
return null;
}