Simply Swords Wildfire Fix
A companion patch mod for Simply Swords — it fixes two Wildfire crashes in the original mod and requires it to work. Server-side only.
What it fixes
1. Players kicked on join (NullPointerException)
If a player logs in with the Wildfire effect active, the effect tick can throw a NullPointerException in HelperMethods.checkFriendlyFire, kicking them with "Internal server error" — every single time they try to join, locking them out of the server completely until the effect is removed from their player data.
2. Server crash from non-player attackers (ClassCastException)
Simply Swords assumes the entity that last hurt a mob is always a player and casts it directly to Player. When a non-player attacker — a dragon, for example — applies Wildfire, the effect tick crashes with a ClassCastException.
How it works
This mod patches the faulty assumptions inside Wildfire's effect logic with a narrow Mixin. Player-caused behavior is unchanged and still uses Simply Swords' original friendly-fire check; non-player attackers keep Wildfire's configured radius, duration, and fire application, just without the crash.
It does not modify, include, or redistribute any part of Simply Swords.
Requirements
- Minecraft 1.18.2
- Forge 40.x
- Simply Swords 1.40-1.18.2 (required — this is a companion mod, it does nothing without the original)
- Java 17
Installation
Server-side only. Drop the jar into your server's mods folder alongside Simply Swords. Players do not need this mod installed to join.
Proven in production
This fix was built for the Claws of Berk server (Vonix Network), where the join-kick bug locked a player out for nearly a week. After installing the fix, affected players could join again normally.
License
MIT — source available on GitHub: https://github.com/Vonix-Network/simplyswords-fix