Snownee / TextAnimator

https://www.curseforge.com/minecraft/mc-mods/text-animator
Other
8 stars 4 forks source link

Crash with EMI #25

Closed SettingDust closed 5 months ago

SettingDust commented 8 months ago

Mod loader

Fabric

Minecraft version

1.20.1

Mod version

e16bf9b5065a94bc4edd82b2dd9131e49f2713b9

Modloader version

e16bf9b5065a94bc4edd82b2dd9131e49f2713b9

Modpack info

No response

If bug:

If bug: The latest.log file

No response

Issue description

The Minecraft option isn't available when reading mod config. Need to move the TA options to mod config I think

Caused by: java.lang.NullPointerException: Cannot invoke "snownee.textanimator.duck.TAOptions.textanimator$getTypewriterMode()" because "net.minecraft.client.Minecraft.getInstance().options" is null
    at snownee.textanimator.TextAnimatorClient.getTypewriterMode(TextAnimatorClient.java:41)
    at snownee.textanimator.util.CommonProxy.iterateFormatted(CommonProxy.java:45)
    at net.minecraft.util.StringDecomposer.handler$zeg000$textanimator$iterateFormatted(StringDecomposer.java:521)
    at net.minecraft.util.StringDecomposer.iterateFormatted(StringDecomposer.java)
    at net.minecraft.client.StringSplitter.splitLines(StringSplitter.java:294)
    at net.minecraft.client.StringSplitter.splitLines(StringSplitter.java:311)
    at dev.emi.emi.config.EmiConfig.getSavedConfig(EmiConfig.java:594)
    at dev.emi.emi.config.EmiConfig.<clinit>(EmiConfig.java:809)
    ... 10 more