diff --git a/src/main/java/net/blf02/immersivemc/client/immersive/AbstractImmersive.java b/src/main/java/net/blf02/immersivemc/client/immersive/AbstractImmersive.java index 4a46947e..9712b6c6 100644 --- a/src/main/java/net/blf02/immersivemc/client/immersive/AbstractImmersive.java +++ b/src/main/java/net/blf02/immersivemc/client/immersive/AbstractImmersive.java @@ -250,9 +250,6 @@ public void renderItem(ItemStack item, MatrixStack stack, Vector3d pos, float si OverlayTexture.NO_OVERLAY, stack, Minecraft.getInstance().renderBuffers().bufferSource()); - // Actually draw what's in our buffer to the screen - Minecraft.getInstance().renderBuffers().bufferSource().endBatch(); - stack.popPose(); if (renderItemCounts && item.getCount() > 1) { @@ -275,7 +272,6 @@ protected void renderItemGuide(MatrixStack stack, AxisAlignedBB hitbox, float al cubeModel.render(stack, buffer.getBuffer(RenderType.entityTranslucent(Cube1x1.textureLocation)), 0, 1, 1, alpha, (float) (hitbox.getSize() / 2f)); stack.popPose(); - buffer.endBatch(); } } @@ -301,7 +297,6 @@ protected void renderHitbox(MatrixStack stack, AxisAlignedBB hitbox, Vector3d po WorldRenderer.renderLineBox(stack, buffer.getBuffer(RenderType.LINES), hitbox.move(-pos.x, -pos.y, -pos.z), red, green, blue, 1); - buffer.endBatch(); stack.popPose(); } } @@ -323,7 +318,6 @@ public void renderText(ITextComponent text, MatrixStack stack, Vector3d pos, flo font.drawInBatch(text, size, 0, 0xFFFFFFFF, false, stack.last().pose(), Minecraft.getInstance().renderBuffers().bufferSource(), false, 0, 15728880); - Minecraft.getInstance().renderBuffers().bufferSource().endBatch(); stack.popPose(); } diff --git a/src/main/java/net/blf02/immersivemc/client/immersive/BackpackImmersive.java b/src/main/java/net/blf02/immersivemc/client/immersive/BackpackImmersive.java index d82852a0..faaa0f51 100644 --- a/src/main/java/net/blf02/immersivemc/client/immersive/BackpackImmersive.java +++ b/src/main/java/net/blf02/immersivemc/client/immersive/BackpackImmersive.java @@ -261,7 +261,6 @@ protected void render(BackpackInfo info, MatrixStack stack, boolean isInVR) { 15728880, OverlayTexture.NO_OVERLAY, 1, 1, 1, 1); - Minecraft.getInstance().renderBuffers().bufferSource().endBatch(); stack.popPose(); } diff --git a/src/main/java/net/blf02/immersivemc/client/subscribe/ClientRenderSubscriber.java b/src/main/java/net/blf02/immersivemc/client/subscribe/ClientRenderSubscriber.java index 33977863..5e916ebe 100644 --- a/src/main/java/net/blf02/immersivemc/client/subscribe/ClientRenderSubscriber.java +++ b/src/main/java/net/blf02/immersivemc/client/subscribe/ClientRenderSubscriber.java @@ -5,6 +5,7 @@ import net.blf02.immersivemc.client.immersive.Immersives; import net.blf02.immersivemc.client.immersive.info.AbstractImmersiveInfo; import net.blf02.immersivemc.common.vr.VRPluginVerify; +import net.minecraft.client.Minecraft; import net.minecraftforge.client.event.RenderWorldLastEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; @@ -36,6 +37,7 @@ protected void renderInfos(AbstractImmersive