Skip to content

Commit 984b26c

Browse files
committed
XRay crash notice
1 parent 988e40c commit 984b26c

File tree

1 file changed

+4
-2
lines changed
  • src/main/kotlin/com/lambda/module/modules/render

1 file changed

+4
-2
lines changed

src/main/kotlin/com/lambda/module/modules/render/XRay.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,14 @@ object XRay : Module(
4141
)
4242

4343
@JvmStatic
44-
val opacity by setting("Opacity", 40, 0..100, 1, "Opacity of the non x-rayed blocks, (automatically overridden as 0 when running Sodium)")
44+
val opacity by setting("Opacity", 40, 1..100, 1, "Opacity of the non x-rayed blocks, (automatically overridden as 0 when running Sodium)")
4545
.onValueChange { _, _ -> if (isEnabled) mc.worldRenderer.reload() }
46-
4746
private val selection by setting("Block Selection", defaultBlocks, description = "Block selection that will be shown (whitelist) or hidden (blacklist)")
4847
.onValueChange { _, _ -> if (isEnabled) mc.worldRenderer.reload() }
48+
49+
// ToDo: Blacklist causes huge performance issues due to many single faces being rendered
4950
private val mode by setting("Selection Mode", Selection.Whitelist, "The mode of the block selection")
51+
.onValueChange { _, _ -> if (isEnabled) mc.worldRenderer.reload() }
5052

5153
@JvmStatic
5254
fun isSelected(blockState: BlockState) = mode.select(blockState)

0 commit comments

Comments
 (0)