Ok But I need label to add condition
if(this.imageHeight != this.imageWidth/2){
return null;
}
with the opcode IFNONNULL no ? Or I must use LINENUMBER?
And what is FRAME SAME ?
the bytecode of "this.imageWidth = par1BufferedImage.getWidth();" :
mv.visitVarInsn(ALOAD, 0);
mv.visitVarInsn(ALOAD, 1);
mv.visitMethodInsn(INVOKEVIRTUAL, "java/awt/image/BufferedImage", "getWidth", "()I", false);
mv.visitFieldInsn(PUTFIELD, "net/minecraft/client/renderer/ImageBufferDownload", "imageWidth", "I");
Why there is ALOAD 0? It serve no purpose!