Proper serialization of ItemStack and other Serializable stuff in Bukkit API

This commit is contained in:
2023-10-07 19:42:26 +02:00
parent da1ee9d882
commit 8b6fe63df1
4 changed files with 134 additions and 15 deletions

View File

@@ -52,6 +52,7 @@ public class Json {
private static Gson build(Function<GsonBuilder, GsonBuilder> builderModifier) {
GsonBuilder base = new GsonBuilder()
.registerTypeAdapterFactory(new CustomAdapterFactory())
.disableHtmlEscaping()
.setLenient();
return builderModifier.apply(base).create();
}