You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 aWorld
as parameter and performs itself the instanceof check.I would suggest to drop any cast and just pass
this.world
as-is.The text was updated successfully, but these errors were encountered: