Crash when placing text block
LemmaEOF opened this issue ยท 3 comments
discovered by quat on modfest 1.17 server
I cannot reproduce this with just Glowcase (as of 6fb3624) btw, even when connecting to a local server, so it's either "something in the modfest pack" or a case of "only works in-dev"
A couple rounds of filebisect
(https://github.com/comp500/filebisect) confirm it's caused by Lithium. The version in the Modfest pack is lithium-fabric-mc1.17.1-0.7.3
.
Glowcase reads directly from the heldItem
field of EntityShapeContext
. However, Lithium makes some of the fields in EntityShapeContext
lazy, including heldItem
: https://github.com/CaffeineMC/lithium-fabric/blob/1.17.x/dev/src/main/java/me/jellysquid/mods/lithium/mixin/shapes/lazy_shape_context/EntityShapeContextMixin.java