It works on 1.16 (I should have prob worked on this sooner...)
This commit is contained in:
parent
33b0559b7b
commit
af6255961a
@ -5,7 +5,9 @@ import io.gitlab.jfronny.breakme.breakme.config.CrashCause;
|
||||
import me.sargunvohra.mcmods.autoconfig1u.AutoConfig;
|
||||
import me.sargunvohra.mcmods.autoconfig1u.serializer.JanksonConfigSerializer;
|
||||
import net.fabricmc.api.ModInitializer;
|
||||
import net.minecraft.client.MinecraftClient;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.server.dedicated.command.StopCommand;
|
||||
import org.apache.logging.log4j.Level;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
@ -43,9 +45,12 @@ public class BreakMe implements ModInitializer {
|
||||
NativeCrash.Crash();
|
||||
break;
|
||||
case Broken_Universal_ExitCode:
|
||||
System.exit(2);
|
||||
System.exit(-1);
|
||||
break;
|
||||
case Safe_Universal_Exception:
|
||||
//This is cool because it will crash but that is good
|
||||
MinecraftClient.getInstance().stop();
|
||||
StopCommand.register(null);
|
||||
throw new Exception("You did bad, now die");
|
||||
case SemiUnsafe_Universal_Exception:
|
||||
throw new SecurityException("You did bad, now die");
|
||||
|
Loading…
Reference in New Issue
Block a user