embeddedt / ArchaicFix

Swiss army knife of bugfixes and performance improvements for MC 1.7.10
Other
67 stars 10 forks source link

Add mixin to fix NPE from Waystones #112

Closed jeremiahwinsley closed 8 months ago

jeremiahwinsley commented 8 months ago

AE2 calls getDisplayDamage from the server thread during world startup, and the warpstone attempts to load the client player from that method. Since the client player isn't present at that point, it NPEs when it tries to read the player's data.

https://gist.github.com/jeremiahwinsley/24343eaba1b6adc7443776a7fc693d56

https://github.com/TwelveIterationMods/Waystones/blob/8ee576ddf087eb865e45c757cb905151e26ddd40/src/main/java/net/blay09/mods/waystones/item/ItemWarpStone.java#L86