Skip to content

Commit

Permalink
Fix order of getenv in NoSessionLoadingPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
pandaninjas authored Oct 13, 2023
1 parent c85280a commit 7fbf116
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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...");
Expand Down

0 comments on commit 7fbf116

Please sign in to comment.