Skip to content

Commit 5b2f59b

Browse files
committed
fix: outline mesher
1 parent 8e6fc93 commit 5b2f59b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

common/src/main/kotlin/com/lambda/graphics/renderer/esp/builders/StaticESPBuilders.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ fun StaticESPRenderer.buildOutlineMesh(
119119
outlineMode: DirectionMask.OutlineMode = DirectionMask.OutlineMode.OR
120120
) = runSafe {
121121
val shape = state.getOutlineShape(world, pos)
122-
buildOutlineMesh(shape, color, sides)
122+
buildOutlineMesh(shape, color, sides, outlineMode)
123123
}
124124

125125
fun StaticESPRenderer.buildOutlineMesh(
@@ -129,7 +129,7 @@ fun StaticESPRenderer.buildOutlineMesh(
129129
outlineMode: DirectionMask.OutlineMode = DirectionMask.OutlineMode.OR
130130
) = runSafe {
131131
val shape = pos.blockState(world).getOutlineShape(world, pos)
132-
buildOutlineMesh(shape, color, sides)
132+
buildOutlineMesh(shape, color, sides, outlineMode)
133133
}
134134

135135
fun StaticESPRenderer.buildOutlineMesh(
@@ -139,7 +139,7 @@ fun StaticESPRenderer.buildOutlineMesh(
139139
outlineMode: DirectionMask.OutlineMode = DirectionMask.OutlineMode.OR
140140
) {
141141
shape.boundingBoxes
142-
.forEach { buildOutline(it, color, sides) }
142+
.forEach { buildOutline(it, color, sides, outlineMode) }
143143
}
144144

145145
fun StaticESPRenderer.buildOutline(

0 commit comments

Comments
 (0)