Skip to content

Commit

Permalink
More mapping misses
Browse files Browse the repository at this point in the history
  • Loading branch information
Rongmario committed Mar 22, 2021
1 parent 8f2b758 commit 733dbf2
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -812,14 +812,14 @@ public static byte[] rewriteUnpackedBakedQuad(byte[] originalClass) {
methodVisitor.visitLineNumber(159, l6);
methodVisitor.visitVarInsn(ALOAD, 0);
methodVisitor.visitFieldInsn(GETFIELD, "net/minecraftforge/client/model/pipeline/UnpackedBakedQuad$Builder", "texture", "Lnet/minecraft/client/renderer/texture/TextureAtlasSprite;");
methodVisitor.visitMethodInsn(INVOKEVIRTUAL, "net/minecraft/client/renderer/texture/TextureAtlasSprite", "getIconWidth", "()I", false);
methodVisitor.visitMethodInsn(INVOKEVIRTUAL, "net/minecraft/client/renderer/texture/TextureAtlasSprite", LoliTransformer.isDeobf ? "getIconWidth" : "func_94211_a", "()I", false);
methodVisitor.visitInsn(I2F);
methodVisitor.visitVarInsn(ALOAD, 0);
methodVisitor.visitFieldInsn(GETFIELD, "net/minecraftforge/client/model/pipeline/UnpackedBakedQuad$Builder", "texture", "Lnet/minecraft/client/renderer/texture/TextureAtlasSprite;");
methodVisitor.visitMethodInsn(INVOKEVIRTUAL, "net/minecraft/client/renderer/texture/TextureAtlasSprite", "getMaxU", "()F", false);
methodVisitor.visitMethodInsn(INVOKEVIRTUAL, "net/minecraft/client/renderer/texture/TextureAtlasSprite", LoliTransformer.isDeobf ? "getMaxU" : "func_94212_f", "()F", false);
methodVisitor.visitVarInsn(ALOAD, 0);
methodVisitor.visitFieldInsn(GETFIELD, "net/minecraftforge/client/model/pipeline/UnpackedBakedQuad$Builder", "texture", "Lnet/minecraft/client/renderer/texture/TextureAtlasSprite;");
methodVisitor.visitMethodInsn(INVOKEVIRTUAL, "net/minecraft/client/renderer/texture/TextureAtlasSprite", "getMinU", "()F", false);
methodVisitor.visitMethodInsn(INVOKEVIRTUAL, "net/minecraft/client/renderer/texture/TextureAtlasSprite", LoliTransformer.isDeobf ? "getMinU" : "func_94209_e", "()F", false);
methodVisitor.visitInsn(FSUB);
methodVisitor.visitInsn(FDIV);
methodVisitor.visitVarInsn(FSTORE, 1);
Expand All @@ -828,14 +828,14 @@ public static byte[] rewriteUnpackedBakedQuad(byte[] originalClass) {
methodVisitor.visitLineNumber(160, l7);
methodVisitor.visitVarInsn(ALOAD, 0);
methodVisitor.visitFieldInsn(GETFIELD, "net/minecraftforge/client/model/pipeline/UnpackedBakedQuad$Builder", "texture", "Lnet/minecraft/client/renderer/texture/TextureAtlasSprite;");
methodVisitor.visitMethodInsn(INVOKEVIRTUAL, "net/minecraft/client/renderer/texture/TextureAtlasSprite", "getIconHeight", "()I", false);
methodVisitor.visitMethodInsn(INVOKEVIRTUAL, "net/minecraft/client/renderer/texture/TextureAtlasSprite", LoliTransformer.isDeobf ? "getIconHeight" : "func_94216_b", "()I", false);
methodVisitor.visitInsn(I2F);
methodVisitor.visitVarInsn(ALOAD, 0);
methodVisitor.visitFieldInsn(GETFIELD, "net/minecraftforge/client/model/pipeline/UnpackedBakedQuad$Builder", "texture", "Lnet/minecraft/client/renderer/texture/TextureAtlasSprite;");
methodVisitor.visitMethodInsn(INVOKEVIRTUAL, "net/minecraft/client/renderer/texture/TextureAtlasSprite", "getMaxV", "()F", false);
methodVisitor.visitMethodInsn(INVOKEVIRTUAL, "net/minecraft/client/renderer/texture/TextureAtlasSprite", LoliTransformer.isDeobf ? "getMaxV" : "func_94210_h", "()F", false);
methodVisitor.visitVarInsn(ALOAD, 0);
methodVisitor.visitFieldInsn(GETFIELD, "net/minecraftforge/client/model/pipeline/UnpackedBakedQuad$Builder", "texture", "Lnet/minecraft/client/renderer/texture/TextureAtlasSprite;");
methodVisitor.visitMethodInsn(INVOKEVIRTUAL, "net/minecraft/client/renderer/texture/TextureAtlasSprite", "getMinV", "()F", false);
methodVisitor.visitMethodInsn(INVOKEVIRTUAL, "net/minecraft/client/renderer/texture/TextureAtlasSprite", LoliTransformer.isDeobf ? "getMinV" : "func_94206_g", "()F", false);
methodVisitor.visitInsn(FSUB);
methodVisitor.visitInsn(FDIV);
methodVisitor.visitVarInsn(FSTORE, 2);
Expand Down Expand Up @@ -886,18 +886,18 @@ public static byte[] rewriteUnpackedBakedQuad(byte[] originalClass) {
methodVisitor.visitVarInsn(ALOAD, 0);
methodVisitor.visitFieldInsn(GETFIELD, "net/minecraftforge/client/model/pipeline/UnpackedBakedQuad$Builder", "format", "Lnet/minecraft/client/renderer/vertex/VertexFormat;");
methodVisitor.visitVarInsn(ILOAD, 5);
methodVisitor.visitMethodInsn(INVOKEVIRTUAL, "net/minecraft/client/renderer/vertex/VertexFormat", "getElement", "(I)Lnet/minecraft/client/renderer/vertex/VertexFormatElement;", false);
methodVisitor.visitMethodInsn(INVOKEVIRTUAL, "net/minecraft/client/renderer/vertex/VertexFormat", LoliTransformer.isDeobf ? "getElement" : "func_177348_c", "(I)Lnet/minecraft/client/renderer/vertex/VertexFormatElement;", false);
methodVisitor.visitVarInsn(ASTORE, 6);
Label l16 = new Label();
methodVisitor.visitLabel(l16);
methodVisitor.visitLineNumber(166, l16);
methodVisitor.visitVarInsn(ALOAD, 6);
methodVisitor.visitMethodInsn(INVOKEVIRTUAL, "net/minecraft/client/renderer/vertex/VertexFormatElement", "getUsage", "()Lnet/minecraft/client/renderer/vertex/VertexFormatElement$EnumUsage;", false);
methodVisitor.visitMethodInsn(INVOKEVIRTUAL, "net/minecraft/client/renderer/vertex/VertexFormatElement", LoliTransformer.isDeobf ? "getUsage" : "func_177375_c", "()Lnet/minecraft/client/renderer/vertex/VertexFormatElement$EnumUsage;", false);
methodVisitor.visitFieldInsn(GETSTATIC, "net/minecraft/client/renderer/vertex/VertexFormatElement$EnumUsage", "UV", "Lnet/minecraft/client/renderer/vertex/VertexFormatElement$EnumUsage;");
Label l17 = new Label();
methodVisitor.visitJumpInsn(IF_ACMPNE, l17);
methodVisitor.visitVarInsn(ALOAD, 6);
methodVisitor.visitMethodInsn(INVOKEVIRTUAL, "net/minecraft/client/renderer/vertex/VertexFormatElement", "getIndex", "()I", false);
methodVisitor.visitMethodInsn(INVOKEVIRTUAL, "net/minecraft/client/renderer/vertex/VertexFormatElement", LoliTransformer.isDeobf ? "getIndex" : "func_177369_e", "()I", false);
methodVisitor.visitJumpInsn(IFNE, l17);
Label l18 = new Label();
methodVisitor.visitLabel(l18);
Expand Down

0 comments on commit 733dbf2

Please sign in to comment.