Developer fixes DawnCraft server bug by editing compiled Java class directly

A developer playing the DawnCraft modpack discovered that the Spellbound Book's attacks worked in singleplayer but completely failed on a dedicated server. Investigation revealed the culprit was a Forge event subscriber annotation in the mod 'Illage & Spillage' that restricted the attack handlers to the physical client only, meaning they were never registered on a dedicated server. Since no source code was available, the fix required decompiling, editing, and recompiling the relevant compiled Java class file inside the mod's JAR archive. The patch removes the client-only restriction so the event handlers run on dedicated servers as well. The complete fix and reproduction tooling have been published on GitHub for other affected players.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in