fixed shapes for 1.17 rendringo

This commit is contained in:
gnembon committed 2021-03-18 00:37:05 -03:00
1 parent 0b93101248
commit 7d135187b1
4 files changed
+57 -122

No files matched your search

@@ -18,11 +18,8 @@ public class FabricAPIHooks {
public static void initialize() {
if (WORLD_RENDER_EVENTS) {
WorldRenderEvents.BEFORE_DEBUG_RENDER.register(context -> {
if (CarpetClient.shapes != null) {
context.matrixStack().push();
if (false) {//(CarpetClient.shapes != null) { // likely won't need it.
CarpetClient.shapes.render(context.matrixStack(), context.camera(), context.tickDelta());
context.matrixStack().pop();
RenderSystem.applyModelViewMatrix();
}
});
}