From a28a9a693563151815b4d71014e998fc50ab8a8e Mon Sep 17 00:00:00 2001 From: Phoebe <77941535+catgirlseraid@users.noreply.github.com> Date: Sat, 18 May 2024 12:24:24 +1200 Subject: Fix plot border rendering (#1819) Co-authored-by: SeRaid <77941535+SeRaid743@users.noreply.github.com> --- .../at/hannibal2/skyhanni/features/garden/GardenPlotAPI.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenPlotAPI.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenPlotAPI.kt index 400767704..6625af123 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenPlotAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenPlotAPI.kt @@ -332,7 +332,7 @@ object GardenPlotAPI { for (j in 0..plotSize step plotSize) { val start = LorenzVec(chunkMinX + i, minHeight, chunkMinZ + j) val end = LorenzVec(chunkMinX + i, maxHeight, chunkMinZ + j) - tryDraw3DLine(start, end, cornerColor, 2, true) + tryDraw3DLine(start, end, cornerColor, 3, true) } } @@ -341,9 +341,9 @@ object GardenPlotAPI { val start = LorenzVec(chunkMinX + x, minHeight, chunkMinZ) val end = LorenzVec(chunkMinX + x, maxHeight, chunkMinZ) // Front lines - tryDraw3DLine(start, end, lineColor, 1, true) + tryDraw3DLine(start, end, lineColor, 2, true) // Back lines - tryDraw3DLine(start.add(z = plotSize), end.add(z = plotSize), lineColor, 1, true) + tryDraw3DLine(start.add(z = plotSize), end.add(z = plotSize), lineColor, 2, true) } // Render vertical on Z-Axis @@ -351,9 +351,9 @@ object GardenPlotAPI { val start = LorenzVec(chunkMinX, minHeight, chunkMinZ + z) val end = LorenzVec(chunkMinX, maxHeight, chunkMinZ + z) // Left lines - tryDraw3DLine(start, end, lineColor, 1, true) + tryDraw3DLine(start, end, lineColor, 2, true) // Right lines - tryDraw3DLine(start.add(x = plotSize), end.add(x = plotSize), lineColor, 1, true) + tryDraw3DLine(start.add(x = plotSize), end.add(x = plotSize), lineColor, 2, true) } // Render horizontal @@ -367,7 +367,7 @@ object GardenPlotAPI { val start = LorenzVec(chunkMinX, y, chunkMinZ) val isRedLine = y == buildLimit val color = if (isRedLine) Color.red else lineColor - val depth = if (isRedLine) 2 else 1 + val depth = if (isRedLine) 3 else 2 // (minX, minZ) -> (minX, minZ + 96) tryDraw3DLine(start, start.add(z = plotSize), color, depth, true) // (minX, minZ + 96) -> (minX + 96, minZ + 96) -- cgit