Interacting with villagers while displaying breeding status throws an exception
magneticflux- opened this issue ยท 0 comments
The log:
[08:48:21] [Server thread/FATAL]: Error executing task on Server
java.lang.ClassCastException: class java.lang.Boolean cannot be cast to class net.minecraft.class_1269 (java.lang.Boolean is in module java.base of loader 'bootstrap'; net.minecraft.class_1269 is in unnamed module of loader net.fabricmc.loader.launch.knot.KnotClassLoader @2b48a640)
at Not Enough Crashes deobfuscated stack trace.(1.16.4+build.7) ~[?:?]
at net.minecraft.entity.passive.VillagerEntity.interactMob(VillagerEntity) ~[?:?]
at net.minecraft.entity.mob.MobEntity.interact(MobEntity:1136) ~[?:?]
at net.minecraft.entity.player.PlayerEntity.interact(PlayerEntity:1049) ~[?:?]
at net.minecraft.server.network.ServerPlayNetworkHandler.onPlayerInteractEntity(ServerPlayNetworkHandler:1304) ~[?:?]
at net.minecraft.network.packet.c2s.play.PlayerInteractEntityC2SPacket.apply(PlayerInteractEntityC2SPacket:74) ~[?:?]
at net.minecraft.network.packet.c2s.play.PlayerInteractEntityC2SPacket.apply(PlayerInteractEntityC2SPacket:13) ~[?:?]
at net.minecraft.network.NetworkThreadUtils.method_11072(NetworkThreadUtils:21) ~[?:?]
at net.minecraft.server.ServerTask.run(ServerTask:18) ~[?:?]
at net.minecraft.util.thread.ThreadExecutor.executeTask(ThreadExecutor:144) ~[?:?]
at net.minecraft.util.thread.ReentrantThreadExecutor.executeTask(ReentrantThreadExecutor:23) ~[?:?]
at net.minecraft.server.MinecraftServer.executeTask(MinecraftServer:761) ~[intermediary-server.jar:?]
at net.minecraft.server.MinecraftServer.executeTask(MinecraftServer:155) ~[intermediary-server.jar:?]
at net.minecraft.util.thread.ThreadExecutor.runTask(ThreadExecutor:118) ~[?:?]
at net.minecraft.server.MinecraftServer.method_20415(MinecraftServer:743) ~[intermediary-server.jar:?]
at net.minecraft.server.MinecraftServer.runTask(MinecraftServer:737) ~[intermediary-server.jar:?]
at net.minecraft.util.thread.ThreadExecutor.runTasks(ThreadExecutor:127) ~[?:?]
at net.minecraft.server.MinecraftServer.method_16208(MinecraftServer:722) ~[intermediary-server.jar:?]
at net.minecraft.server.MinecraftServer.handler$bam000$modifiedRunLoop(MinecraftServer:7319) ~[intermediary-server.jar:?]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer:651) ~[intermediary-server.jar:?]
at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer:257) ~[intermediary-server.jar:?]
at java.lang.Thread.run(Unknown Source) [?:?]
The offending code:
The
interactMob
method (as of sometime in 1.16) now returns an ActionResult
, not a Boolean
so the mixin needs to be changed.