From b15b45fdb423907a0cc74d4a166caee642a23747 Mon Sep 17 00:00:00 2001 From: Connor Slade Date: Sun, 7 Jan 2024 10:59:35 -0500 Subject: [PATCH] MapBorder cleanup rendering --- .../sigmautils/modules/rendering/MapBorder.java | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/connorcode/sigmautils/modules/rendering/MapBorder.java b/src/main/java/com/connorcode/sigmautils/modules/rendering/MapBorder.java index 564b5f3..9d287f8 100644 --- a/src/main/java/com/connorcode/sigmautils/modules/rendering/MapBorder.java +++ b/src/main/java/com/connorcode/sigmautils/modules/rendering/MapBorder.java @@ -47,16 +47,21 @@ void onRender(WorldRender.PostWorldRenderEvent event) { layer.vertex(matrices, boxX, y, boxZ).color(d).next(); } - // Add connecting lines - layer.vertex(matrices, boxX, minY, boxZ).color(c).next(); - layer.vertex(matrices, boxX, maxY, boxZ).color(d).next(); + layer.vertex(matrices, boxX, maxY, boxZ).color(c).next(); + layer.vertex(matrices, boxX - 128, minY, boxZ).color(c).next(); layer.vertex(matrices, boxX - 128, minY, boxZ).color(c).next(); layer.vertex(matrices, boxX - 128, maxY, boxZ).color(d).next(); - layer.vertex(matrices, boxX - 128, minY, boxZ - 128).color(c).next(); - layer.vertex(matrices, boxX - 128, maxY, boxZ - 128).color(d).next(); + + layer.vertex(matrices, boxX - 128, maxY, boxZ).color(c).next(); + layer.vertex(matrices, boxX, minY, boxZ - 128).color(c).next(); layer.vertex(matrices, boxX, minY, boxZ - 128).color(c).next(); layer.vertex(matrices, boxX, maxY, boxZ - 128).color(d).next(); + layer.vertex(matrices, boxX, maxY, boxZ - 128).color(c).next(); + layer.vertex(matrices, boxX - 128, minY, boxZ - 128).color(c).next(); + layer.vertex(matrices, boxX - 128, minY, boxZ - 128).color(c).next(); + layer.vertex(matrices, boxX - 128, maxY, boxZ - 128).color(d).next(); + immediate.draw(); } }