![Surgebinding](https://media.forgecdn.net/avatars/thumbnails/549/241/256/256/637886069192971258.png)
Game crash with aviar
i3rimstonefox opened this issue ยท 1 comments
Issue description
in Minecraft you can use spectator mode to inhabit creatures to see out of their eyes, when used on an aviar it completely crashes the game
Steps to reproduce
- enter minecraft world
- have aviar in front of you
- switch to spectator mode
- left click on the aviar
Minecraft version
1.19.2
Forge version
1.266.1-21386
Cosmere version
Cosmere-1.19.2-43.1.3-0.5.94
Other relevant versions
No response
If a (crash)log is relevant for this issue, link it here: (It's almost always relevant)
No response
Issue is with our FOV zoom code, aviar class can't be cast as a player. Frankly, I'm surprised it can work with any other mob.
java.lang.ClassCastException: class leaf.cosmere.aviar.common.entity.AviarBird cannot be cast to class net.minecraft.world.entity.player.Player (leaf.cosmere.aviar.common.entity.AviarBird is in module [email protected] of loader 'TRANSFORMER' @ebe067d; net.minecraft.world.entity.player.Player is in module [email protected] of loader 'TRANSFORMER' @ebe067d)
at net.minecraft.client.renderer.GameRenderer.handler$zzf000$getZoomedFov(GameRenderer.java:2129) ~[forge-1.20.1-47.3.0_mapped_parchment_2023.09.03-1.20.1-recomp.jar:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:cosmere.mixins.json:GameRendererMixin,pl:mixin:APP:feruchemy.mixins.json:GameRendererMixin,pl:mixin:A,pl:runtimedistcleaner:A}