ClassCastException when bee with passenger flies through village at night
A bee with a zombie passenger will crash the server/client when attempting to navigate through a village at night.
To reproduce
- Create a village
- I made an enclosed box with 4 beds, workstations, villagers, and 1 bell.
- Set world time to night
- Summon a bee with a passenger in close proximity to the village
/summon minecraft:bee ~ ~ ~ {Passengers:[ {id:'minecraft:zombie'}]}
Notes
The issue appears to be related to the passenger's AI because if you summon the zombie with NoAI:1, there is no crash
This bug was reproduced in a 1.15.2 vanilla single player world and a multiplayer server
Effectively corrupts the world-save as the exception will be thrown as soon as the world is loaded, re-crashing the game
Stack trace
Description: Ticking entity java.lang.ClassCastException: atd$1 cannot be cast to arq at aps.a(SourceFile:78) at aqv.a(SourceFile:22) at aph$$Lambda$3188/399658777.test(Unknown Source) at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174) at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) at java.util.Iterator.forEachRemaining(Iterator.java:116) at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502) at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) at aph.a(SourceFile:69) at ala.du(SourceFile:633) at akz.k(SourceFile:2331) at ala.k(SourceFile:490) at aww.k(SourceFile:39) at axp.k(SourceFile:263) at akz.h(SourceFile:2173) at ala.h(SourceFile:295) at axp.h(SourceFile:236) at akq.aQ(SourceFile:1700) at akz.aQ(SourceFile:2469) at xd.a(SourceFile:633) at xd.a(SourceFile:610) at xd$$Lambda$3177/813761707.accept(Unknown Source) at bjw.a(SourceFile:534) at xd.a(SourceFile:398) at net.minecraft.server.MinecraftServer.b(SourceFile:854) at net.minecraft.server.MinecraftServer.a(SourceFile:793) at edm.a(SourceFile:130) at net.minecraft.server.MinecraftServer.run(SourceFile:655) at java.lang.Thread.run(Thread.java:745)
2020-06-16, 07:50 AM
2020-06-17, 07:16 PM
2020-06-17, 04:12 PM
0
1