How to reproduce
Create a new world with the attached datapack (or use attached one)
Make a circle of tall grass
Place workstations outside the circle
Spawn villager inside the circle
Wait for villager to pathfind
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)
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...