3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-27 08:30:06 +01:00
Paper/nms-patches/UserCache.patch

26 Zeilen
1.4 KiB
Diff

--- 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-07-15 02:00:00 +02:00
@@ -330,11 +330,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);
}