[Bug]: Crash/CTD When placing a Iron's Spellbook Necromancer from a UtilitX Mob Yoinker
SenojLuap opened this issue ยท 1 comments
Describe the bug you're experiencing
As description. I attempted to place a Necromancer from Iron's Spells n Spellbooks, via a Mob Yoinker from Utilitix. Result is a crash to desktop, and a crash log starting with Farsight.
Reproducability
Crash occurred in the AllTheMods 9 modpack, version 0.2.57.
Place a Necromancer (from Iron's Spells n Spellbooks) into a Mob Yoinker (from UtilitiX). Rightclick the yoinker onto the ground to cause the crash.
Mod up to date
- Before submitting this issue I updated to the newest version and reproduced it
Minecraft version
Minecraft: 1.20.1 | Forge: 47.2.20
Modloader version
Forge
Logs
https://gist.github.com/SenojLuap/830bd3dc4ee5d5d6ef2a322619d970e5
Looks like an issue of utilix and irons spells n spellbooks, trying to cast the clientside chunk manager to ServerChunkCache on render thread seems wrong.
It seems the issue is triggered from utilix loading and creating the mob on client side: https://github.com/MelanX/UtilitiX/blob/6f11ba08ce54b4a1e69c84fb42af1f6d5e2cf088/src/main/java/de/melanx/utilitix/item/ItemMobYoinker.java#L42
Which in turn triggers Irons spells n spellbooks to call its "sync to client" which is expected to run on the serverside not the clientside.
Even without farsight this will crash as you cannot cast to "ServerChunkCache" on the client side