mirror of
https://github.com/PaperMC/Paper.git
synced 2025-09-02 05:13:51 -07:00
@@ -1,5 +1,14 @@
|
||||
--- a/net/minecraft/server/JsonList.java
|
||||
+++ b/net/minecraft/server/JsonList.java
|
||||
@@ -56,7 +56,7 @@
|
||||
this.c = file;
|
||||
GsonBuilder gsonbuilder = (new GsonBuilder()).setPrettyPrinting();
|
||||
|
||||
- gsonbuilder.registerTypeHierarchyAdapter(JsonListEntry.class, new JsonList.JsonListEntrySerializer(null));
|
||||
+ gsonbuilder.registerTypeHierarchyAdapter(JsonListEntry.class, new JsonList.JsonListEntrySerializer()); // CraftBukkit - decompile error
|
||||
this.b = gsonbuilder.create();
|
||||
}
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
@Nullable
|
||||
public V get(K k0) {
|
||||
@@ -40,17 +49,3 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -212,11 +218,11 @@
|
||||
}
|
||||
}
|
||||
|
||||
- public JsonElement serialize(Object object, Type type, JsonSerializationContext jsonserializationcontext) {
|
||||
+ public JsonElement serialize(JsonListEntry<K> object, Type type, JsonSerializationContext jsonserializationcontext) { // CraftBukkit - fix decompile error
|
||||
return this.a((JsonListEntry) object, type, jsonserializationcontext);
|
||||
}
|
||||
|
||||
- public Object deserialize(JsonElement jsonelement, Type type, JsonDeserializationContext jsondeserializationcontext) throws JsonParseException {
|
||||
+ public JsonListEntry<K> deserialize(JsonElement jsonelement, Type type, JsonDeserializationContext jsondeserializationcontext) throws JsonParseException { // CraftBukkit - fix decompile error
|
||||
return this.a(jsonelement, type, jsondeserializationcontext);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user