diff options
author | Phoebe <77941535+catgirlseraid@users.noreply.github.com> | 2024-05-18 12:24:24 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-18 02:24:24 +0200 |
commit | a28a9a693563151815b4d71014e998fc50ab8a8e (patch) | |
tree | 572fd391302b149aed2334c8640be23dc6c740fc /src/main/java/at/hannibal2/skyhanni/features | |
parent | f7f86c32c9d9731d040b49f7693ece00ea7bdada (diff) | |
download | skyhanni-a28a9a693563151815b4d71014e998fc50ab8a8e.tar.gz skyhanni-a28a9a693563151815b4d71014e998fc50ab8a8e.tar.bz2 skyhanni-a28a9a693563151815b4d71014e998fc50ab8a8e.zip |
Fix plot border rendering (#1819)
Co-authored-by: SeRaid <77941535+SeRaid743@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/GardenPlotAPI.kt | 12 |
1 files changed, 6 insertions, 6 deletions
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) |