Skip to content

Commit

Permalink
fixed vanilla mode runs 256 times instead of 225
Browse files Browse the repository at this point in the history
  • Loading branch information
ImToggle committed Jun 29, 2024
1 parent 40c7ebc commit 0bea32f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ object CrosshairRenderer {
fun updateVanilla() {
val icon = TextureUtil.readBufferedImage(mc.resourceManager.getResource(Gui.icons).inputStream)
vanilla = DynamicTexture(15, 15)
for (y in 0..15) {
for (x in 0..15) {
for (y in 0 until 15) {
for (x in 0 until 15) {
if (icon.getRGB(x, y) == -1) {
vanilla.textureData[x + y * 15] = -1
}
Expand Down

0 comments on commit 0bea32f

Please sign in to comment.