From 39ccc2e15005d54aee7db0bd0d91cb0527cb512d Mon Sep 17 00:00:00 2001 From: LexManos Date: Tue, 2 Apr 2013 23:51:53 -0700 Subject: [PATCH] Fix vanilla texture bug causing rotated textures to be placed wrong. --- .../renderer/texture/Texture.java.patch | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 patches/minecraft/net/minecraft/client/renderer/texture/Texture.java.patch diff --git a/patches/minecraft/net/minecraft/client/renderer/texture/Texture.java.patch b/patches/minecraft/net/minecraft/client/renderer/texture/Texture.java.patch new file mode 100644 index 000000000..ad82a35fa --- /dev/null +++ b/patches/minecraft/net/minecraft/client/renderer/texture/Texture.java.patch @@ -0,0 +1,20 @@ +--- ../src_base/minecraft/net/minecraft/client/renderer/texture/Texture.java ++++ ../src_work/minecraft/net/minecraft/client/renderer/texture/Texture.java +@@ -222,7 +222,7 @@ + + if (par4) + { +- l = par2 + (par3Texture.getHeight() - k); ++ l = par1 + (par3Texture.getHeight() - k); //BUGFIX: targetY -> targetX + } + + for (int k1 = 0; k1 < par3Texture.getWidth(); ++k1) +@@ -232,7 +232,7 @@ + + if (par4) + { +- l1 = par1 + k1 * this.width * 4 + l * 4; ++ l1 = (par2 + k1) * this.width * 4 + l * 4; //BUGFIX: targetX -> targetY and parens + } + + this.textureData.put(l1 + 0, bytebuffer.get(i2 + 0));