NullPointerException from recalculating stats
jeremiahwinsley opened this issue ยท 2 comments
Versions
- Silent Gear: 2.6.32
- Silent Lib: 4.10.0
- Forge: 36.2.8
- Modpack: N/A
- Optifine Installed: No
Expected Behavior
The server connection should not fail.
Actual Behavior
When joining a server under certain circumstances, possibly to do with specific tools, the connection will fail with a NullPointerException. This happens without Curious Elytra, but I was only able to consistently reproduce it with Curious Elytra installed.
The issue appears to be with the RecalculateStatsPacket. In this case, the packet attempts to send another recalculate packet for the max durability, and fails because net.minecraft.client.Minecraft.getConnection()
returns null.
Links/Images
Steps to Reproduce the Problem
- Create server and client instance with Forge 36.2.8, install Silent Gear, Curious Elytra, and their dependencies.
- Add
-Dforge.logging.mojang.level=debug
to client java args, so that the full stack trace shows up in the logs. - Create a Silent Gear elytra (tested with phantom membrane and fine silk), and wear it in the Curio back slot.
- Log out of the server, then attempt to log back in.