Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-16 04:50:05 +01:00
26 Zeilen
1.4 KiB
Diff
26 Zeilen
1.4 KiB
Diff
--- a/net/minecraft/server/UserCache.java
|
|
+++ b/net/minecraft/server/UserCache.java
|
|
@@ -44,7 +44,7 @@
|
|
private static boolean c;
|
|
private final Map<String, UserCache.UserCacheEntry> d = Maps.newHashMap();
|
|
private final Map<UUID, UserCache.UserCacheEntry> e = Maps.newHashMap();
|
|
- private final LinkedList<GameProfile> f = Lists.newLinkedList();
|
|
+ private final java.util.Deque<GameProfile> f = new java.util.concurrent.LinkedBlockingDeque<GameProfile>(); // CraftBukkit
|
|
private final GameProfileRepository g;
|
|
protected final Gson b;
|
|
private final File h;
|
|
@@ -335,11 +335,11 @@
|
|
}
|
|
}
|
|
|
|
- public JsonElement serialize(Object object, Type type, JsonSerializationContext jsonserializationcontext) {
|
|
+ public JsonElement serialize(UserCacheEntry object, Type type, JsonSerializationContext jsonserializationcontext) { // CraftBukkit - decompile error
|
|
return this.a((UserCache.UserCacheEntry) object, type, jsonserializationcontext);
|
|
}
|
|
|
|
- public Object deserialize(JsonElement jsonelement, Type type, JsonDeserializationContext jsondeserializationcontext) throws JsonParseException {
|
|
+ public UserCacheEntry deserialize(JsonElement jsonelement, Type type, JsonDeserializationContext jsondeserializationcontext) throws JsonParseException { // CraftBukkit - decompile error
|
|
return this.a(jsonelement, type, jsondeserializationcontext);
|
|
}
|
|
|