Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,10 @@ public static void renderMultiblock(Level level, PoseStack ms) {
ms.pushPose();
ms.translate(-renderPosX, -renderPosY, -renderPosZ);

var mainBuffers = mc.renderBuffers().bufferSource();
mainBuffers.endBatch(); // when we do initBuffers we keep the buffers but dont know if were still batching, so it doesnt properly end in the getBuffer call and breaks stuff
if (buffers == null) {
buffers = initBuffers(mc.renderBuffers().bufferSource());
buffers = initBuffers(mainBuffers);
}

BlockPos checkPos = null;
Expand Down