mojira.dev
MC-246449

Game crashes when villager tries to open non-door in #wooden_doors tag

How to reproduce

  1. Create a new world with the attached datapack (or use attached one)

  2. Make a circle of tall grass

  3. Place workstations outside the circle

  4. Spawn villager inside the circle

  5. Wait for villager to pathfind

  6. Crash triggers

Stack trace

1.18.1\: [^crash-2021-12-27_01.39.17-server.txt]

Description: Ticking entity

java.lang.ClassCastException: class cew cannot be cast to class ceu (cew and ceu are in unnamed module of loader 'app')
	at azp.a(SourceFile:86)
	at ayt.e(SourceFile:49)
	at ayc.d(SourceFile:511)
	at ayc.a(SourceFile:470)
	at bne.R(SourceFile:273)
	at axj.eE(SourceFile:758)
	at axh.w_(SourceFile:2604)
	at axj.w_(SourceFile:545)
	at awr.w_(SourceFile:127)
	at axh.k(SourceFile:2349)
	at axj.k(SourceFile:345)
	at bne.k(SourceFile:314)
	at adi.a(SourceFile:699)
	at cad.a(SourceFile:487)
	at adi.a(SourceFile:360)
	at cru.a(SourceFile:54)
	at adi.a(SourceFile:328)
	at net.minecraft.server.MinecraftServer.b(SourceFile:879)
	at net.minecraft.server.MinecraftServer.a(SourceFile:823)
	at fcv.a(SourceFile:99)
	at net.minecraft.server.MinecraftServer.w(SourceFile:684)
	at net.minecraft.server.MinecraftServer.a(SourceFile:270)
	at java.base/java.lang.Thread.run(Thread.java:833)

Attachments

Comments 2

If I understand correctly, I wouldn't really consider this a bug, because nothing that isn't a wooden door should ever have that tag...

There are many bugs like this that were triaged and fixed in previous versions.

apple502j

Panda4994

Confirmed

Important

Crash

1.18.1

22w03a

Retrieved