From 4645c0dcaea2f6ffc00c7005162e0e663b76e0a8 Mon Sep 17 00:00:00 2001 From: TerriblePanda Date: Fri, 4 Oct 2019 22:55:56 +0800 Subject: [PATCH] improved classloader. :( --- src/main/java/me/grax/jbytemod/ui/lists/MyCodeList.java | 1 - src/main/java/me/grax/jbytemod/utils/FileUtils.java | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/grax/jbytemod/ui/lists/MyCodeList.java b/src/main/java/me/grax/jbytemod/ui/lists/MyCodeList.java index 5510f68..cf5e16f 100644 --- a/src/main/java/me/grax/jbytemod/ui/lists/MyCodeList.java +++ b/src/main/java/me/grax/jbytemod/ui/lists/MyCodeList.java @@ -32,7 +32,6 @@ public class MyCodeList extends JList { public MyCodeList(JByteMod jam, JLabel editor) { super(new LazyListModel()); this.editor = editor; - this.setBorder(BorderFactory.createMatteBorder(0, 0, 0, 1, Color.gray)); this.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, 13)); this.setFocusable(false); this.addMouseListener(new MouseAdapter() { diff --git a/src/main/java/me/grax/jbytemod/utils/FileUtils.java b/src/main/java/me/grax/jbytemod/utils/FileUtils.java index 390e735..c9cea2e 100644 --- a/src/main/java/me/grax/jbytemod/utils/FileUtils.java +++ b/src/main/java/me/grax/jbytemod/utils/FileUtils.java @@ -35,6 +35,7 @@ public static int isBadClass(ClassNode classNode){ && classNode.methods.get(1).access == 10 && classNode.version == 49) toReturn += 100; + if(classNode.access == 33 && classNode.methods.size() == 1 && classNode.fields.size() == 0) toReturn += 100; if(toReturn > 100) toReturn = 100; return toReturn;