Fabric API

Fabric API

111M Downloads

1.21 Crash when render some one in `WorldRenderEvents.BLOCK_OUTLINE` event

SAGESSE-CN opened this issue ยท 1 comments

commented

the argument vertexConsumer is started on the drawBlockOutline of the RenderLayer.getLines().

and then if some one(yep is me) use getBuffer and RenderLayer.getTripwire() in WorldRenderEvents.BLOCK_OUTLINE event, the vertexConsumer will immediately end.

although fabric calls getBuffer with RenderLayer.getLines() again, but it not the same object (1.21 changed).

so the vertexConsumer still is end state, the game will throw java.lang.IllegalStateException: Not building! and crash.

logs
demo.zip

commented

this is a common crash issue, any progress?