Spectrum

Spectrum

2M Downloads

Incompatibility with Minecraft Comes Alive

Luke100000 opened this issue ยท 6 comments

commented

From Luke100000/minecraft-comes-alive#239

MCA uses a Mixin to inject custom translations into TranslationStorage. Together with Spectrum 1.4.0 this no longer works (and the untranslated keys are shown instead).

image

spectrum-1.4.0-1.18.2-chaos-and-exploration does not work, spectrum-1.3.3-1.18.2-midgame18-trinkets-brewing works fine.

Log does not provide any information (failed mixins etc).

I would like to resolve this issue, but wasn't able to find any translation/text related code at all. Any ideas?

commented

It get's even worse: It seems to work one time and acting up out another time?

commented

Looks like something converts TranslatableTexts to LiteralTexts?
While Spectrum itself does not tamper with chat text, maybe one of the libraries that I added in that Version of Spectrum may.
I will take a look at it.

commented

Thanks for the quick response!

I tried all dependencies without Spectrum, it works. It might be indirectly.

The error happens outside the chat too, drawCenteredText(new TranslatableText("key")) for example fails. That means the error should be somewhere in TranslatableText or TranslationStorage.

commented

image

In the cases, where translations do not work, the translation strings cannot be resolved. The culprit seems to lie in TranslationStorage/MixinTranslationStorage somewhere.
I am afraid that is prob. the furthest I can come, without debugging MCA directly, though.

commented

Thanks a lot! I will debug this further and let you know once I found the issue.

commented