Animania Base

Animania Base

11M Downloads

ClassCastException: com.animania.common.tileentities.TileEntityInvisiblock cannot be cast to com.animania.common.tileentities.TileEntityTrough

clienthax opened this issue ยท 1 comments

commented

Expected Behavior

No error.

Actual Behavior

[15:57:21] [Server thread/ERROR] [Sponge]: /************************************************************************************************************************************************************/
[15:57:21] [Server thread/ERROR] [Sponge]: /*                                                          Exception occurred during a PhaseState                                                          */
[15:57:21] [Server thread/ERROR] [Sponge]: /************************************************************************************************************************************************************/
[15:57:21] [Server thread/ERROR] [Sponge]: /* Sponge's tracking system makes a best effort to not throw exceptions randomly                                                                            */
[15:57:21] [Server thread/ERROR] [Sponge]: /* but sometimes it is inevitable. In most cases, something else triggered this                                                                             */
[15:57:21] [Server thread/ERROR] [Sponge]: /* exception and Sponge prevented a crash by catching it. The following stacktrace                                                                          */
[15:57:21] [Server thread/ERROR] [Sponge]: /* can be used to help pinpoint the cause.                                                                                                                  */
[15:57:21] [Server thread/ERROR] [Sponge]: /************************************************************************************************************************************************************/
[15:57:21] [Server thread/ERROR] [Sponge]: /* The PhaseState having an exception: Tick{Entity}                                                                                                         */
[15:57:21] [Server thread/ERROR] [Sponge]: /* The PhaseContext:                                                                                                                                        */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     - Source: EntityRamFriesian['Friesian Ram'/2015, l='world', x=24326.40, y=63.30, z=-24274.40]                                                        */
[15:57:21] [Server thread/ERROR] [Sponge]: /* org.spongepowered.asm.util.PrettyPrinter@fb80009                                                                                                         */
[15:57:21] [Server thread/ERROR] [Sponge]: /*                                                                                                                                                          */
[15:57:21] [Server thread/ERROR] [Sponge]: /*  StackTrace :                                                                                                                                            */
[15:57:21] [Server thread/ERROR] [Sponge]: /* net.minecraft.util.ReportedException: Colliding entity with block                                                                                        */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.entity.Entity.func_70091_d(Entity.java:971)                                                                                            */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.entity.EntityLivingBase.func_191986_a(EntityLivingBase.java:1958)                                                                      */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.entity.EntityLivingBase.func_70636_d(EntityLivingBase.java:2393)                                                                       */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.entity.EntityLiving.func_70636_d(EntityLiving.java:577)                                                                                */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.entity.EntityAgeable.func_70636_d(EntityAgeable.java:178)                                                                              */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.entity.passive.EntityAnimal.func_70636_d(SourceFile:43)                                                                                */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.entity.passive.EntitySheep.func_70636_d(EntitySheep.java:111)                                                                          */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     com.animania.common.entities.sheep.EntityAnimaniaSheep.func_70636_d(EntityAnimaniaSheep.java:528)                                                    */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     com.animania.common.entities.sheep.EntityRamBase.func_70636_d(EntityRamBase.java:239)                                                                */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.entity.EntityLivingBase.func_70071_h_(EntityLivingBase.java:2179)                                                                      */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.entity.EntityLiving.func_70071_h_(EntityLiving.java:295)                                                                               */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     org.spongepowered.common.event.tracking.TrackingUtil.tickEntity(TrackingUtil.java:167)                                                               */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.world.WorldServer.redirect$onCallEntityUpdate$zlg000(WorldServer.java:4800)                                                            */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.world.World.func_72866_a(World.java:1993)                                                                                              */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:832)                                                                                   */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.world.World.func_72870_g(World.java:1955)                                                                                              */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.world.World.func_72939_s(World.java:1759)                                                                                              */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:3943)                                                                                  */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:767)                                                                          */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:397)                                                                */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668)                                                                          */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)                                                                                   */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     java.lang.Thread.run(Thread.java:748)                                                                                                                */
[15:57:21] [Server thread/ERROR] [Sponge]: /* java.lang.ClassCastException: com.animania.common.tileentities.TileEntityInvisiblock cannot be cast to com.animania.common.tileentities.TileEntityTrough */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     com.animania.common.blocks.BlockTrough.onEntityCollision(BlockTrough.java:157)                                                                       */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.entity.Entity.redirect$spongeImpl$onEntityCollideWithBlockState$zed000(Entity.java:7671)                                               */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.entity.Entity.doBlockCollisions(Entity.java:1044)                                                                                      */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.entity.Entity.move(Entity.java:964)                                                                                                    */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.entity.EntityLivingBase.travel(EntityLivingBase.java:1958)                                                                             */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.entity.EntityLivingBase.onLivingUpdate(EntityLivingBase.java:2393)                                                                     */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.entity.EntityLiving.onLivingUpdate(EntityLiving.java:577)                                                                              */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.entity.EntityAgeable.onLivingUpdate(EntityAgeable.java:178)                                                                            */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.entity.passive.EntityAnimal.onLivingUpdate(SourceFile:43)                                                                              */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.entity.passive.EntitySheep.onLivingUpdate(EntitySheep.java:111)                                                                        */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     com.animania.common.entities.sheep.EntityAnimaniaSheep.onLivingUpdate(EntityAnimaniaSheep.java:528)                                                  */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     com.animania.common.entities.sheep.EntityRamBase.onLivingUpdate(EntityRamBase.java:239)                                                              */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.entity.EntityLivingBase.onUpdate(EntityLivingBase.java:2179)                                                                           */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.entity.EntityLiving.onUpdate(EntityLiving.java:295)                                                                                    */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     org.spongepowered.common.event.tracking.TrackingUtil.tickEntity(TrackingUtil.java:167)                                                               */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.world.WorldServer.redirect$onCallEntityUpdate$zlg000(WorldServer.java:4800)                                                            */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.world.World.updateEntityWithOptionalForce(World.java:1993)                                                                             */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:832)                                                                  */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.world.World.updateEntity(World.java:1955)                                                                                              */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.world.World.updateEntities(World.java:1759)                                                                                            */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.world.WorldServer.updateEntities(WorldServer.java:3943)                                                                                */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:767)                                                            */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.server.dedicated.DedicatedServer.updateTimeLightAndEntities(DedicatedServer.java:397)                                                  */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:668)                                                                                  */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)                                                                                   */
[15:57:21] [Server thread/ERROR] [Sponge]: /*     java.lang.Thread.run(Thread.java:748)                                                                                                                */
[15:57:21] [Server thread/ERROR] [Sponge]: /*                                                                                                                                                          */
[15:57:21] [Server thread/ERROR] [Sponge]: /* Minecraft : 1.12.2                                                                                                                                       */
[15:57:21] [Server thread/ERROR] [Sponge]: /* SpongeAPI : 7.1.0-9067212f0                                                                                                                              */
[15:57:21] [Server thread/ERROR] [Sponge]: /* Sponge : 1.12.2-7.1.7-SNAPSHOT                                                                                                                           */
[15:57:21] [Server thread/ERROR] [Sponge]: /* SpongeForge : 1.12.2-2838-7.1.7-RC3886                                                                                                                   */
[15:57:21] [Server thread/ERROR] [Sponge]: /* Minecraft Forge : 14.23.5.2838                                                                                                                           */
[15:57:21] [Server thread/ERROR] [Sponge]: /************************************************************************************************************************************************************/

Steps to Reproduce

Unsure, screenshot attached.

Version of Minecraft, version of Animania, Single Player or Server

Server
animania-1.12.2-1.6.2.jar

Screenshots encouraged

image

commented

Probably a sponge issue, but will add a check