Game crashing due to flying entities in 2020.2

Published by Radikid on
Status
Can not reproduce
Issue description

Getting an error with flying entities.

"The game crashed whilst ticking entity
Error: java.lang.ClassCastException:
net.minecraft.pathfinding.FlyingPathNavigator cannot be cast to
net.minecraft.pathfinding.GroundPathNavigator"

Can't go near them or it crashes.:( This breaks my dimension.

Issue comments

I don't use anything other than what MCreator provides itself. Just went through the settings when creating my mob and that is it. No custom AI, just what's included. The only difference between the game working and not working is the old build of my mod was built with 2020.1 and the new version, without any changes to it, was built with 2020.2. Maybe the new rotation is messing with something? Or do I have to reconfigure the mob?
 

2020.2.14217

 

Time: 4/6/20 11:57 PM
Description: Ticking entity

java.lang.ClassCastException: net.minecraft.pathfinding.FlyingPathNavigator cannot be cast to net.minecraft.pathfinding.GroundPathNavigator
	at net.minecraft.entity.ai.goal.InteractDoorGoal.shouldExecute(InteractDoorGoal.java:59) ~[?:?] {re:classloading}
	at net.minecraft.entity.ai.goal.BreakDoorGoal.shouldExecute(BreakDoorGoal.java:33) ~[?:?] {re:classloading}
	at net.minecraft.entity.ai.goal.PrioritizedGoal.shouldExecute(PrioritizedGoal.java:24) ~[?:?] {re:classloading}
	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174) ~[?:1.8.0_232] {}
	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) ~[?:1.8.0_232] {}
	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) ~[?:1.8.0_232] {}
	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) ~[?:1.8.0_232] {}
	at java.util.Iterator.forEachRemaining(Iterator.java:116) ~[?:1.8.0_232] {}
	at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801) ~[?:1.8.0_232] {}
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) ~[?:1.8.0_232] {}
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) ~[?:1.8.0_232] {}
	at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) ~[?:1.8.0_232] {}
	at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) ~[?:1.8.0_232] {}
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_232] {}
	at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:485) ~[?:1.8.0_232] {}
	at net.minecraft.entity.ai.goal.GoalSelector.tick(GoalSelector.java:78) ~[?:?] {re:classloading}
	at net.minecraft.entity.MobEntity.updateEntityActionState(MobEntity.java:644) ~[?:?] {re:classloading,pl:accesstransformer:B}
	at net.minecraft.entity.LivingEntity.livingTick(LivingEntity.java:2345) ~[?:?] {re:classloading}
	at net.minecraft.entity.MobEntity.livingTick(MobEntity.java:507) ~[?:?] {re:classloading,pl:accesstransformer:B}
	at net.minecraft.entity.monster.MonsterEntity.livingTick(MonsterEntity.java:41) ~[?:?] {re:classloading}
	at net.mcreator.sapphyrine_mod.entity.EchoingStalkerEntity$CustomEntity.livingTick(EchoingStalkerEntity.java:240) ~[?:?] {re:classloading}
	at net.minecraft.entity.LivingEntity.tick(LivingEntity.java:2187) ~[?:?] {re:classloading}
	at net.minecraft.entity.MobEntity.tick(MobEntity.java:311) ~[?:?] {re:classloading,pl:accesstransformer:B}
	at net.minecraft.entity.monster.MonsterEntity.tick(MonsterEntity.java:56) ~[?:?] {re:classloading}
	at net.minecraft.world.server.ServerWorld.updateEntity(ServerWorld.java:602) ~[?:?] {re:classloading}
	at net.minecraft.world.World.func_217390_a(World.java:734) ~[?:?] {re:classloading,pl:accesstransformer:B}
	at net.minecraft.world.server.ServerWorld.tick(ServerWorld.java:397) ~[?:?] {re:classloading}
	at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:865) ~[?:?] {re:classloading,pl:accesstransformer:B}
	at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:800) ~[?:?] {re:classloading,pl:accesstransformer:B}
	at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:646) [?:?] {re:classloading,pl:accesstransformer:B}
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_232] {}

 

Aww, that sucks. I put it in there just in case it got trapped by a player. Thanks for letting me know! It wasn't having an issue until just recently. Thanks again :)