Quark

Quark

143M Downloads

Unable to modify chat component within ItemSharingModule using Forge Event Bus

Jarva opened this issue ยท 0 comments

commented

Quark fires a ServerChatEvent on the Forge Event Bus and listens for cancellation but does not respect any changes to the component.

https://github.com/VazkiiMods/Quark/blob/master/src/main/java/vazkii/quark/content/management/module/ItemSharingModule.java#L95-L120

Example mod changing the component:
https://github.com/FTBTeam/FTB-Ranks/blob/main/common/src/main/java/dev/ftb/mods/ftbranks/impl/FTBRanksAPIImpl.java#L83-L146

This causes Quark Item Links to be formatted differently to all other chat messages that are modified through the event bus.

I raised the issue in the latvian.dev discord server initially to determine if it was an issue with FTB Ranks.
Thread Link: https://discord.com/channels/303440391124942858/615627049637380144/880207717841633340
Discord Link: https://discord.gg/bPFfH6P