From 6acfab7a33df163569953dd7df5879d3dd0a300e Mon Sep 17 00:00:00 2001 From: xjboss Date: Sun, 23 Jul 2017 17:12:47 +0800 Subject: [PATCH] Add specialsource to System.exit() whitelist --- .../asm/transformers/TerminalTransformer.java.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 patches/cpw/mods/fml/common/asm/transformers/TerminalTransformer.java.patch diff --git a/patches/cpw/mods/fml/common/asm/transformers/TerminalTransformer.java.patch b/patches/cpw/mods/fml/common/asm/transformers/TerminalTransformer.java.patch new file mode 100644 index 0000000..ff6c331 --- /dev/null +++ b/patches/cpw/mods/fml/common/asm/transformers/TerminalTransformer.java.patch @@ -0,0 +1,12 @@ +--- ../src-base/minecraft/cpw/mods/fml/common/asm/transformers/TerminalTransformer.java ++++ ../src-work/minecraft/cpw/mods/fml/common/asm/transformers/TerminalTransformer.java +@@ -46,7 +46,8 @@ + clsName.equals("net/minecraft/server/dedicated/DedicatedServer") || + clsName.equals("cpw/mods/fml/common/FMLCommonHandler") || + clsName.startsWith("com/jcraft/jogg/") || +- clsName.startsWith("scala/sys/") ++ clsName.startsWith("scala/sys/") || ++ clsName.startsWith("net/md_5/specialsource") + ); + + return new MethodVisitor(Opcodes.ASM5, super.visitMethod(mAccess, mName, mDesc, mSignature, mExceptions))