diff options
Diffstat (limited to 'src/main/java/net/minecraftforge/fml/nea')
-rw-r--r-- | src/main/java/net/minecraftforge/fml/nea/moe/modernjava/IAMFML.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/net/minecraftforge/fml/nea/moe/modernjava/IAMFML.java b/src/main/java/net/minecraftforge/fml/nea/moe/modernjava/IAMFML.java index 99ee7b0..d4d2844 100644 --- a/src/main/java/net/minecraftforge/fml/nea/moe/modernjava/IAMFML.java +++ b/src/main/java/net/minecraftforge/fml/nea/moe/modernjava/IAMFML.java @@ -1,7 +1,16 @@ package net.minecraftforge.fml.nea.moe.modernjava; +import net.minecraftforge.fml.relauncher.FMLSecurityManager; + +/** + * Class in a package starting with {@code net.minecraftforge.fml} in order to easily bypass the {@link FMLSecurityManager} + * which disallows calling {@link System#exit(int)}. + */ public class IAMFML { + /** + * Calls {@link System#exit(int)} + */ public static void shutdown(int code) { System.exit(code); } |