Ancient Spellcraft

Ancient Spellcraft

7M Downloads

[Bug] Crash with Soul Scorch

WinDanesz opened this issue ยท 0 comments

commented

Is there an existing issue for this?

  • I have searched the existing issues

Observed behaviour

Hitting a cinder cloud from TFSpellpack with soul scorch causes a crash

Expected behaviour

Proper checks for my entity class casts..

    at com.windanesz.ancientspellcraft.spell.SoulScorch.onEntityHit(SoulScorch.java:34)
    at electroblob.wizardry.spell.SpellRay.shootSpell(SpellRay.java:277)
    at electroblob.wizardry.spell.SpellRay.cast(SpellRay.java:168)
    at electroblob.wizardry.item.ItemWand.cast(ItemWand.java:478)
    at electroblob.wizardry.item.ItemWand.onUsingTick(ItemWand.java:442)
    at net.minecraft.entity.EntityLivingBase.updateActiveHand(EntityLivingBase.java:2678)
    at net.minecraft.entity.EntityLivingBase.onUpdate(EntityLivingBase.java:2097)
    at net.minecraft.entity.player.EntityPlayer.onUpdate(EntityPlayer.java:234)
    at net.minecraft.entity.player.EntityPlayerMP.onUpdateEntity(EntityPlayerMP.java:382)
    at net.minecraft.network.NetHandlerPlayServer.update(NetHandlerPlayServer.java:173)
    at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher$1.update(NetworkDispatcher.java:209)
    at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:285)
    at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:180)
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:790)
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:668)
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:279)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
    at java.lang.Thread.run(Thread.java:745)```

### Steps to reproduce

cast Soul Scorch on a non-living entity

### Crashlog

_No response_

### Environment (Singleplayer/Server, etc.)

LAN game/Server

### Mod version

latest

### Forge version

2860

### Other mods

_No response_