mirror of
https://github.com/ViaVersion/ViaProxy.git
synced 2024-12-24 16:58:42 +01:00
Fix lists being constructed in reverse
Well they still are, but they're reversed at the end.
This commit is contained in:
parent
636663274a
commit
384f8ca581
@ -178,6 +178,13 @@ public class Java17ToJava8 implements IBytecodeTransformer {
|
||||
list.add(new InsnNode(Opcodes.POP));
|
||||
}
|
||||
list.add(new VarInsnNode(Opcodes.ALOAD, freeVarIndex));
|
||||
list.add(new InsnNode(Opcodes.DUP));
|
||||
list.add(new MethodInsnNode(
|
||||
Opcodes.INVOKESTATIC,
|
||||
"java/util/Collections",
|
||||
"reverse",
|
||||
"(Ljava/util/List;)V"
|
||||
));
|
||||
list.add(new MethodInsnNode(Opcodes.INVOKESTATIC, "java/util/Collections", "unmodifiableList", "(Ljava/util/List;)Ljava/util/List;"));
|
||||
}
|
||||
} else if (min.name.equals("copyOf")) {
|
||||
|
Loading…
Reference in New Issue
Block a user