Earth2Java [FORGE]

Earth2Java [FORGE]

21.3k Downloads

Crashes with Inspecio entity rendering.

LambdAurora opened this issue ยท 0 comments

commented

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.