From cfc63b535e02695d0eb7de0c2d00fe7d4fbc4b5c Mon Sep 17 00:00:00 2001 From: zaxar163 Date: Sat, 19 Oct 2019 21:17:51 +0300 Subject: [PATCH] =?UTF-8?q?[FIX]=20=D0=9E=D0=BA=D0=BE=D0=BD=D1=87=D0=B0?= =?UTF-8?q?=D1=82=D0=B5=D0=BB=D1=8C=D0=BD=D1=8B=D0=B9=20=D1=84=D0=B8=D0=BA?= =?UTF-8?q?=D1=81...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/pro/gravit/launchserver/asm/ConfigGenerator.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/asm/ConfigGenerator.java b/LaunchServer/src/main/java/pro/gravit/launchserver/asm/ConfigGenerator.java index cb6d9ee2..ab66442c 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/asm/ConfigGenerator.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/asm/ConfigGenerator.java @@ -51,7 +51,7 @@ public void setByteArrayField(String name, byte[] value) { public void setByteArrayListField(String name, List b) { constructor.instructions.add(new VarInsnNode(Opcodes.ALOAD, 0)); constructor.instructions.add(new TypeInsnNode(Opcodes.NEW, "java/util/ArrayList")); - constructor.instructions.add(new InsnNode(Opcodes.DUP)); + constructor.instructions.add(new InsnNode(Opcodes.DUP)); // +1 constructor.instructions.add(new MethodInsnNode(Opcodes.INVOKESPECIAL, "java/util/ArrayList", "", "()V")); for (byte[] value : b) { constructor.instructions.add(new InsnNode(Opcodes.DUP)); // +1-1 @@ -61,7 +61,6 @@ public void setByteArrayListField(String name, List b) { constructor.instructions.add(new MethodInsnNode(Opcodes.INVOKEINTERFACE, "java/util/List", "add", "(Ljava/lang/Object;)Z", true)); constructor.instructions.add(new InsnNode(Opcodes.POP)); } - constructor.instructions.add(new InsnNode(Opcodes.POP)); // needs -1 constructor.instructions.add(new FieldInsnNode(Opcodes.PUTFIELD, configclass.name, name, "Ljava/util/List;")); }