--- a/net/minecraft/server/UserCache.java +++ b/net/minecraft/server/UserCache.java @@ -46,7 +46,7 @@ private static boolean c; private final Map d = Maps.newHashMap(); private final Map e = Maps.newHashMap(); - private final Deque f = Lists.newLinkedList(); + private final Deque f = new java.util.concurrent.LinkedBlockingDeque(); // CraftBukkit private final GameProfileRepository g; protected final Gson b; private final File h; @@ -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); }