![Earth2Java [FORGE]](https://media.forgecdn.net/avatars/thumbnails/284/863/256/256/637298848287586322.png)
Crashes with Inspecio entity rendering.
LambdAurora opened this issue ยท 0 comments
We got an issue about a crash with the rendering of this mod's entities on Inspecio's tooltips: Queerbric/Inspecio#13.
From the crash report, it's because when this mod is trying to read the NBT of the Horned Sheep, it tries to cast the entity's world to ServerWorld
.
The thing is, those read/write NBT methods have no guarantees on which side they will be called, and Inspecio needs to give a ClientWorld
.
The weirdest is the readAngerFromNbt
method takes a World
as parameter and performs itself the instanceof check.
I would suggest to drop any cast and just pass this.world
as-is.