Simple Discord Link Bot

Simple Discord Link Bot

1M Downloads

[Bug]: Having Flan installed causes modded advancements to not be localized

Y1rd opened this issue ยท 4 comments

commented

๐Ÿž Description

If Flan is installed on a server along side Simple Discord Link, advancements from any mod printed out to discord don't have localization, and display the strings instead.

๐Ÿ”„ Steps to reproduce

  1. Installed Flan, Simple Discord Link, and any mod that adds additional advancements into the game (e.g. Farmer's Delight)
  2. Setup a discord bot, add a channel for the bot to send messages
  3. Launch the server and let any player obtain an modded advancement
  4. Look in discord chat for unlocalized advancement message

โœ… Expected behavior

Advancements should be localized and be read, as seen here:

Image

โŒ Actual behavior

Advancements are not localized, instead printing out the string.

Image

๐ŸŽฎ Minecraft Version

1.18.2

๐Ÿ› ๏ธ Mod Version

3.2.3

๐Ÿ“ฆ Mod Loader

Forge

๐Ÿ”ง Mod Loader Version

40.3.9

๐Ÿ“š CraterLib Version

2.1.4

๐Ÿ“œ Logs & Screenshots

https://mclo.gs/rGUD0ZI

commented

Sadly, not much I can do about this. The mod relies on the data given to it by the game, and if something breaks that, it breaks the mod too.

In these cases, the advancements won't show up correctly in the console either.

It doesn't affect the client side, because the client actually has the language files containing the text on it, whereas the server usually doesn't.

This is a problem for all discord mods as far as I know

commented

Sadly, not much I can do about this. The mod relies on the data given to it by the game, and if something breaks that, it breaks the mod too.

In these cases, the advancements won't show up correctly in the console either.

It doesn't affect the client side, because the client actually has the language files containing the text on it, whereas the server usually doesn't.

This is a problem for all discord mods as far as I know

Yikes, I originally thought a different discord mod was just not working with modded advancements, but I turned out wrong after digging a bit deeper after it was happening here as well. None of my other 190 mods in my pack break this.
I guess I will be forwarding this issue to the author of Flan, thanks for looking at it!

commented

Yikes, I originally thought a different discord mod was just not working with modded advancements

They usually do, and so do ours, but there are these weird cases of things somehow breaking the language support on servers. Only real solution to this, is to force the mod to be both client and server side, and then each time something fails, we ask the client for the correct information, but, who wants a discord server mod to be a requirement client side?

commented

...but, who wants a discord server mod to be a requirement client side?

Not anyone I think, I went ahead and forwarded this issue to the repo of Flan.