diff --git a/src/main/java/gq/malwarefight/nosession/NoSessionLoadingPlugin.java b/src/main/java/gq/malwarefight/nosession/NoSessionLoadingPlugin.java index 7d4a89a..5bb9d4d 100644 --- a/src/main/java/gq/malwarefight/nosession/NoSessionLoadingPlugin.java +++ b/src/main/java/gq/malwarefight/nosession/NoSessionLoadingPlugin.java @@ -213,7 +213,7 @@ public static void relaunchProcess(Matcher m) throws Exception { if (new File("/.flatpak-info").exists()) { LogManager.getLogger().warn("Bubblewrap sandboxing doesn't work on Flatpak. Malicious mods " + "could still steal long-lived session secrets"); - } else if (System.getenv("MINECRAFT_SANDBOX_VARIANT").equals("prismlauncher-bwrap")) { + } else if ("prismlauncher-bwrap".equals(System.getenv("MINECRAFT_SANDBOX_VARIANT"))) { LogManager.getLogger().info("Detected PrismLauncher sandbox, continuing..."); } else if (System.getProperties().containsKey("gq.malwarefight.nosession.disable_sandbox")) { LogManager.getLogger().info("Skipping sandboxing because gq.malwarefight.nosession.disable_sandbox was set...");