diff --git a/fml/client/net/minecraft/src/ModTextureAnimation.java b/fml/client/net/minecraft/src/ModTextureAnimation.java index dfed5fbb4..c35bfabd5 100644 --- a/fml/client/net/minecraft/src/ModTextureAnimation.java +++ b/fml/client/net/minecraft/src/ModTextureAnimation.java @@ -95,9 +95,9 @@ public class ModTextureAnimation extends TextureFX for (int frame = 0; frame < frames; frame++) { - int[] pixels = new int[tWidth * tHeight]; + int[] pixels = new int[tileSizeSquare]; image.getRGB(0, tHeight * frame, tWidth, tHeight, pixels, 0, tWidth); - images[frame] = new byte[tWidth * tHeight * 4]; + images[frame] = new byte[tileSizeSquare << 2]; for (int i = 0; i < pixels.length; i++) { diff --git a/fml/client/net/minecraft/src/ModTextureStatic.java b/fml/client/net/minecraft/src/ModTextureStatic.java index 1286fbc75..f68ba0621 100644 --- a/fml/client/net/minecraft/src/ModTextureStatic.java +++ b/fml/client/net/minecraft/src/ModTextureStatic.java @@ -65,7 +65,7 @@ public class ModTextureStatic extends TextureFX errored=true; return; } - pixels = new int[TextureFX.iconTileSize]; + pixels = new int[TextureFX.tileSizeSquare]; if (tWidth == sWidth && tHeight == sHeight) {