Skip to content

Commit 0bea32f

Browse files
committed
fixed vanilla mode runs 256 times instead of 225
1 parent 40c7ebc commit 0bea32f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/kotlin/org/polyfrost/crosshair/render/CrosshairRenderer.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ object CrosshairRenderer {
5353
fun updateVanilla() {
5454
val icon = TextureUtil.readBufferedImage(mc.resourceManager.getResource(Gui.icons).inputStream)
5555
vanilla = DynamicTexture(15, 15)
56-
for (y in 0..15) {
57-
for (x in 0..15) {
56+
for (y in 0 until 15) {
57+
for (x in 0 until 15) {
5858
if (icon.getRGB(x, y) == -1) {
5959
vanilla.textureData[x + y * 15] = -1
6060
}

0 commit comments

Comments
 (0)