diff options
| author | Linnea Gräf <roman.graef@gmail.com> | 2023-11-02 15:28:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-02 15:28:49 +0100 |
| commit | 2a6d3a96d40ca425e661737fb4fc467b2040437b (patch) | |
| tree | bb89ff8177ebb3abdc2a047f16b9671bc18cacd8 /src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java | |
| parent | e1c24ecc30132fc98aa9cf33b928232b2efabcd8 (diff) | |
| download | notenoughupdates-2a6d3a96d40ca425e661737fb4fc467b2040437b.tar.gz notenoughupdates-2a6d3a96d40ca425e661737fb4fc467b2040437b.tar.bz2 notenoughupdates-2a6d3a96d40ca425e661737fb4fc467b2040437b.zip | |
Add custom TODOs (#870)
Co-authored-by: Lulonaut <lulonaut@lulonaut.tech>
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java b/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java index f878dbf1..f20c5338 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java @@ -56,6 +56,7 @@ import io.github.moulberry.notenoughupdates.recipes.RecipeGenerator; import io.github.moulberry.notenoughupdates.util.Utils; import io.github.moulberry.notenoughupdates.util.brigadier.BrigadierRoot; import io.github.moulberry.notenoughupdates.util.hypixelapi.HypixelItemAPI; +import io.github.moulberry.notenoughupdates.util.kotlin.KotlinTypeAdapterFactory; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.FontRenderer; import net.minecraft.client.gui.GuiScreen; @@ -150,7 +151,8 @@ public class NotEnoughUpdates { put("MYTHIC", EnumChatFormatting.LIGHT_PURPLE.toString()); }}; public static ProfileViewer profileViewer; - private final Gson gson = new GsonBuilder().setPrettyPrinting().excludeFieldsWithoutExposeAnnotation().create(); + private final Gson gson = new GsonBuilder().setPrettyPrinting().excludeFieldsWithoutExposeAnnotation() + .registerTypeAdapterFactory(KotlinTypeAdapterFactory.INSTANCE).create(); public NEUManager manager; public NEUOverlay overlay; public NEUConfig config; |
