Surgebinding

Surgebinding

294 Downloads

Game crash with aviar

i3rimstonefox opened this issue ยท 1 comments

commented

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

  1. enter minecraft world
  2. have aviar in front of you
  3. switch to spectator mode
  4. 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

commented

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}