lines were rendering through with the text

This commit is contained in:
gnembon committed 2020-07-19 22:47:57 -03:00
1 parent 022c091fff
commit b1d0ce7521
1 file changed
+3 -2
@@ -263,8 +263,9 @@ public class ShapesRenderer
textRenderer.draw(shape.value, text_x, 0.0F, shape.textcolor, false, Rotation3.identity().getMatrix(), immediate, false, shape.textbck, 15728880);
immediate.draw();
RenderSystem.popMatrix();
if (shape.doublesided)
RenderSystem.enableCull();
RenderSystem.enableCull();
RenderSystem.enableDepthTest();
RenderSystem.depthFunc(515);
}
}