SWDTeam Forums

Welcome to the SWDTeam forums. Enjoy your stay!, Thank you for being part of our community!

swdteam.common.entity.EntityCyberman.attacked

Hi.

 

I'm using The Dalek Mod for a while and it is awesome! But since I updated my Server to a newer Version (48.7), I have some trouble.

There are some damage events that seem to call a function from the Dalek Mod that should not be called in this situation.

 

Example: 

Dispenser filled with Fireball Charges. If I shoot one to a player, the Server crashes with the following error:

java.lang.ClassCastException: net.minecraft.entity.projectile.EntitySmallFireball cannot be cast to net.minecraft.entity.EntityLivingBase

at com.swdteam.common.entity.EntityCyberman.attacked(EntityCyberman.java:287)

at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_41_EntityCyberman_attacked_LivingHurtEvent.invoke(.dynamic)

at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)

at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182)

at net.minecraftforge.common.ForgeHooks.onLivingHurt(ForgeHooks.java:598)

at net.minecraft.entity.EntityLivingBase.func_70665_d(EntityLivingBase.java:1410)

at net.minecraft.entity.EntityLivingBase.func_70097_a(EntityLivingBase.java:926)

at net.minecraft.entity.projectile.EntitySmallFireball.func_70227_a(EntitySmallFireball.java:45)

at net.minecraft.entity.projectile.EntityFireball.func_70071_h_(EntityFireball.java:98)

at net.minecraft.world.World.func_72866_a(World.java:1993)

at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:832)

at net.minecraft.world.World.func_72870_g(World.java:1955)

at net.minecraft.world.World.func_72939_s(World.java:1759)

at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:613)

at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:767)

at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:397)

at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)

at java.lang.Thread.run(Thread.java:748)

 

This will also happen if the also installed Betweenlands Mod will cast an AoE effect, that hurts me.

Example 2:

java.lang.ClassCastException: thebetweenlands.common.entity.EntitySpikeWave cannot be cast to net.minecraft.entity.EntityLivingBase

at com.swdteam.common.entity.EntityCyberman.attacked(EntityCyberman.java:287)

at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_38_EntityCyberman_attacked_LivingHurtEvent.invoke(.dynamic)

at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)

at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182)

at net.minecraftforge.common.ForgeHooks.onLivingHurt(ForgeHooks.java:590)

at net.minecraft.entity.EntityLivingBase.func_70665_d(EntityLivingBase.java:1403)

at net.minecraft.entity.EntityLivingBase.func_70097_a(EntityLivingBase.java:919)

at net.minecraft.entity.monster.EntityMob.func_70097_a(EntityMob.java:70)

at thebetweenlands.common.entity.EntitySpikeWave.func_70071_h_(EntitySpikeWave.java:171)

at net.minecraft.world.World.func_72866_a(World.java:1993)

at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:832)

at net.minecraft.world.World.func_72870_g(World.java:1955)

at net.minecraft.world.World.func_72939_s(World.java:1759)

at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:613)

at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:767)

at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:397)

at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)

at java.lang.Thread.run(Thread.java:748)

 

The funny thing is, that no Cyberman is nearby. So why the entity.EntityCyberman.attacked function will be called?

 

Server: Minecraft 1.12.2 with FML Forge-14.23.5.2807

 

You must be logged in to post.