From 11b0a9d7a2bc2ac8c9b5cfd7748dca3495dd3e46 Mon Sep 17 00:00:00 2001 From: ImToggle <98242902+ImToggle@users.noreply.github.com> Date: Mon, 8 Jul 2024 10:25:59 +0800 Subject: [PATCH] fixed black box --- .../kotlin/org/polyfrost/crosshair/render/CrosshairRenderer.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/org/polyfrost/crosshair/render/CrosshairRenderer.kt b/src/main/kotlin/org/polyfrost/crosshair/render/CrosshairRenderer.kt index 6417bbf..0685a63 100644 --- a/src/main/kotlin/org/polyfrost/crosshair/render/CrosshairRenderer.kt +++ b/src/main/kotlin/org/polyfrost/crosshair/render/CrosshairRenderer.kt @@ -57,7 +57,7 @@ object CrosshairRenderer { for (y in 0 until size) { for (x in 0 until size) { icon.getRGB(x, y).let { - if (it != 0) vanilla.textureData[x + y * size] = it + if (it != -16777216) vanilla.textureData[x + y * size] = it } } }