3
0

Add specialsource to System.exit() whitelist

This commit is contained in:
xjboss 2017-07-23 17:12:47 +08:00
parent 2b91f4ebb2
commit 6acfab7a33

View File

@ -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))