"Cannot remove from team" workaround
"Cannot remove from team" workaround is a Fabric client mod that stops a scoreboard exception from causing lag spikes on some servers.
What it does
The mod targets an IllegalStateException thrown on the render thread when Scoreboard.removeScoreHolderFromTeam is called. On certain buggy servers the error appears as an error while executing a client task, and the resulting stalls show up as lag spikes. Installing the mod on the client removes those spikes by handling the failing call. It runs only on the client, so servers need nothing and players join without installing anything else. Files are published for Fabric only, for 1.20.3 and 1.20.4, with 1.0.1 for 1.20.4 as the latest file.
Key features
Render thread fix
Handles the IllegalStateException raised when a score holder is removed from a team on the render thread.
Lag spike reduction
Targets the stalls that some buggy servers produce when a team removal fails during play.
Client-side operation
The workaround lives entirely on the player's side and changes nothing that a server has to run.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Questions
Does the mod need to be installed on the server?
Which game versions does it support?
In the catalog
"Cannot remove from team" workaround is one of 3,545 Optimization mods on ModsFinder, and one of 2,575 Optimization mods for Fabric. 13,907 mods support Minecraft 1.20.4.
Similar mods
What the author says
One thing this mod does is it replaces IllegalStateException throwing with LOGGER.warn(). Though I'm not a Java coding guru, I don't understand why the exception is thrown on render thread.
Official listing
- Modrinth page
- modrinth.com/mod/cannot-remove-from-team-workaround
- Owner
- BlueGradientHorizon
- Published
- 2024-04-13
- Updated on Modrinth
- 2024-04-16
- Facts verified
- 2026-10-15
