Launcher/libLauncher/src/main/java/cpw/mods/fml/SafeExitJVMLegacy.java
2018-11-08 19:30:16 +07:00

15 lines
421 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package cpw.mods.fml;
import ru.gravit.utils.helper.JVMHelper;
// FMLSecurityManager запрещает делать System.exit из классов
// Не входящих в пакеты самого Forge
public class SafeExitJVMLegacy {
public static void exit(int code) {
try {
JVMHelper.RUNTIME.halt(code);
} catch (Throwable e) {
System.exit(code);
}
}
}