From 8bf7451107f3da9eadb26aab01387fceef787c9e Mon Sep 17 00:00:00 2001 From: RePixelatedMC Date: Sat, 4 Nov 2023 17:00:09 +0100 Subject: [PATCH] - Removed debug code - fixed unstableprompt --- .../iris/engine/safeguard/ServerBootSFG.java | 1 - .../iris/engine/safeguard/UtilsSFG.java | 58 ++++++++++--------- 2 files changed, 30 insertions(+), 29 deletions(-) diff --git a/core/src/main/java/com/volmit/iris/engine/safeguard/ServerBootSFG.java b/core/src/main/java/com/volmit/iris/engine/safeguard/ServerBootSFG.java index e6e204472..713b3cbef 100644 --- a/core/src/main/java/com/volmit/iris/engine/safeguard/ServerBootSFG.java +++ b/core/src/main/java/com/volmit/iris/engine/safeguard/ServerBootSFG.java @@ -67,7 +67,6 @@ public class ServerBootSFG { } allIncompatiblePlugins = joiner.toString(); - Iris.info("All Incompatible Plugins: " + allIncompatiblePlugins); safeguardPassed = (count == 0); if(!safeguardPassed){ diff --git a/core/src/main/java/com/volmit/iris/engine/safeguard/UtilsSFG.java b/core/src/main/java/com/volmit/iris/engine/safeguard/UtilsSFG.java index c19dbd0c5..65a06499b 100644 --- a/core/src/main/java/com/volmit/iris/engine/safeguard/UtilsSFG.java +++ b/core/src/main/java/com/volmit/iris/engine/safeguard/UtilsSFG.java @@ -61,37 +61,39 @@ public class UtilsSFG { } - public static void unstablePrompt(){ - Iris.info(""); - Iris.info(C.DARK_GRAY + "--==<" + C.RED +" IMPORTANT " + C.DARK_GRAY + ">==--"); - Iris.info(C.RED + "Iris is running in unstable mode what may cause the following issues."); - Iris.info(C.DARK_RED +"Server Issues"); - Iris.info(C.RED + "- Server wont boot"); - Iris.info(C.RED + "- Data Loss"); - Iris.info(C.RED + "- Unexpected behavior."); - Iris.info(C.RED + "- And More.."); - Iris.info(C.DARK_RED + "World Issues"); - Iris.info(C.RED + "- Worlds cant load due to corruption.."); - Iris.info(C.RED + "- Worlds may slowly corrupt till they wont be able to load."); - Iris.info(C.RED + "- World data loss."); - Iris.info(C.RED + "- And More.."); - Iris.info(C.DARK_RED + "ATTENTION:"+ C.RED + " While running iris in unstable mode you wont be eligible for support."); - Iris.info(C.DARK_RED + "CAUSE: " + C.RED + MSGIncompatibleWarnings()); - Iris.info(""); - if (IrisSettings.get().getGeneral().bootUnstable){ - Iris.info(C.DARK_RED + "Boot Unstable is set to true, continuing with the startup process."); - } + public static void unstablePrompt() { + if (unstablemode) { + Iris.info(""); + Iris.info(C.DARK_GRAY + "--==<" + C.RED + " IMPORTANT " + C.DARK_GRAY + ">==--"); + Iris.info(C.RED + "Iris is running in unstable mode what may cause the following issues."); + Iris.info(C.DARK_RED + "Server Issues"); + Iris.info(C.RED + "- Server wont boot"); + Iris.info(C.RED + "- Data Loss"); + Iris.info(C.RED + "- Unexpected behavior."); + Iris.info(C.RED + "- And More.."); + Iris.info(C.DARK_RED + "World Issues"); + Iris.info(C.RED + "- Worlds cant load due to corruption.."); + Iris.info(C.RED + "- Worlds may slowly corrupt till they wont be able to load."); + Iris.info(C.RED + "- World data loss."); + Iris.info(C.RED + "- And More.."); + Iris.info(C.DARK_RED + "ATTENTION:" + C.RED + " While running iris in unstable mode you wont be eligible for support."); + Iris.info(C.DARK_RED + "CAUSE: " + C.RED + MSGIncompatibleWarnings()); + Iris.info(""); + if (IrisSettings.get().getGeneral().bootUnstable) { + Iris.info(C.DARK_RED + "Boot Unstable is set to true, continuing with the startup process."); + } - if(!IrisSettings.get().getGeneral().isBootUnstable()){ - Iris.info(C.DARK_RED + "Go to plugins/iris/settings.json and set ignoreUnstable to true if you wish to proceed."); - while (true) { - try { - Thread.sleep(1000); - } catch (InterruptedException e) { - // No + if (!IrisSettings.get().getGeneral().isBootUnstable()) { + Iris.info(C.DARK_RED + "Go to plugins/iris/settings.json and set ignoreUnstable to true if you wish to proceed."); + while (true) { + try { + Thread.sleep(1000); + } catch (InterruptedException e) { + // No + } } } + Iris.info(""); } - Iris.info(""); } }