Skip to content

Commit

Permalink
Fix incorrect indexing in mipmap generation code (#5201)
Browse files Browse the repository at this point in the history
  • Loading branch information
bs2609 authored and tterrag1098 committed Jan 4, 2019
1 parent 54882f2 commit 3dd8c8a
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
--- ../src-base/minecraft/net/minecraft/client/renderer/texture/TextureUtil.java
+++ ../src-work/minecraft/net/minecraft/client/renderer/texture/TextureUtil.java
@@ -63,7 +63,7 @@
{
boolean flag = false;

- for (int i = 0; i < p_147949_2_.length; ++i)
+ for (int i = 0; i < p_147949_2_[0].length; ++i)
{
if (p_147949_2_[0][i] >> 24 == 0)
{
@@ -83,6 +83,7 @@
int[] aint1 = aint[l1 - 1];
int[] aint2 = new int[aint1.length >> 2];
Expand Down

0 comments on commit 3dd8c8a

Please sign in to comment.