Hey everyone I'm reaching out to see if anyone has come across this problem and see if there's a solution?

I have packed the textures into the cache via Toms suite, the texture makes the cape in the inventory look very strange almost like remains with a texture overlay.

Attached image

and black when equipped

Attached image

this is what I have currently as code

in client.java
if (Rasterizer.anIntArray1480[50] >= j) {
Background background_2 = Rasterizer.aBackgroundArray1474s[50];
int i1 = background_2.anInt1452 * background_2.anInt1453 - 1;
int l1 = background_2.anInt1452 * anInt945 * 2;
byte abyte2[] = background_2.aByteArray1450;
byte abyte5[] = aByteArray912;
for (int k2 = 0; k2 <= i1; k2++)
abyte5[k2] = abyte2[k2 - l1 & i1];

background_2.aByteArray1450 = abyte5;
aByteArray912 = abyte2;
Rasterizer.method370(50);
}
in rasterizer I have this
public static int textureAmount = 51;
ItemDef
case 23650:
model.setTexture(50);
break;
case 23650:
itemDef.itemActions = new String[5];
itemDef.itemActions[1] = "Wear";
itemDef.anInt200 = 33111;
itemDef.modelID = 33144;
itemDef.anInt165 = 33103;
itemDef.modelOffset2 = -10;
itemDef.modelOffset1 = -35;
itemDef.anInt204 = 0;
itemDef.name = "Infernal cape";
itemDef.modelOffset1 = -4;
itemDef.modelRotationY = 512;
itemDef.modelRotationX = 1900;
itemDef.modelZoom = 2300;
break;
I am satisfied that the texture has at least been packed, I've attempted to follow steps of every single tutorial I could find with no success, if you know what I'm missing I'd greatly appreciate any advise, I don't want to be spoonfed as I do want to learn.