TheAGamePlayer / The-Pure-Suffering-Mod

A Minecraft Invasion Mod that started off as a fun side-project. Invasions will spawn every few days or so, increasing in severity and tiers as time goes on within your Minecraft World.
GNU General Public License v3.0
1 stars 0 forks source link

Crash on Invasion Start (1.16.5) also to be fixed on (1.18.2)(1.19.3) #6

Closed Yuogusy closed 1 year ago

Yuogusy commented 1 year ago

I have a similar issue as reported in another issue report for 1.18.2 here: https://github.com/TheAGamePlayer/The-Pure-Suffering-Mod/issues/5

It causes a crash report that is very similar: https://pastebin.com/wfMkwKR4

I noticed that you mentioned that that particular issue might be related to 1.18 chunk loading, so this might not be related, but it looks quite similar. Much like his issue, I cannot reload the game until I disable the mod.

I am on Forge 36.2.39 (Minecraft 1.16.5). I have not tried an older version as of yet, and am on Pure Suffering 1.3.1R, the newest on CurseForge.

Thank you!

TheAGamePlayer commented 1 year ago

It seems that I only fixed part of the problem, while mobs can no longer spawn in unloaded chunks with the bug fix, the bug still remains as a client-server desync occurs when a player is about to disconnect from the server. The mod attempts to find a player before deciding where it should spawn mobs, but if the player is disconnected and the world is still loaded, it can lead to a crash bricking the world. I will be releasing an update on 1.16.5, 1.18.2, and 1.19.3 to fix this. Sorry about not responding sooner, but thanks for letting me know :)

TheAGamePlayer commented 1 year ago

I just uploaded bug fixes on all 3 versions to CurseForge, in my test world it fixed the problem. Let me know if it does the same for you before I close the issue ;)

Yuogusy commented 1 year ago

It works perfectly, been testing all day. Thank you!

TheAGamePlayer commented 1 year ago

Thank you for letting me know :)