diff --git a/Launcher/src/main/java/ru/gravit/launcher/guard/LauncherWrapperGuard.java b/Launcher/src/main/java/ru/gravit/launcher/guard/LauncherWrapperGuard.java index 91df7434..dc647b86 100644 --- a/Launcher/src/main/java/ru/gravit/launcher/guard/LauncherWrapperGuard.java +++ b/Launcher/src/main/java/ru/gravit/launcher/guard/LauncherWrapperGuard.java @@ -65,7 +65,8 @@ public void addCustomEnv(ClientLauncherContext context) { env.put("GUARD_USERNAME", context.playerProfile.username); env.put("GUARD_PUBLICKEY", config.publicKey.getModulus().toString(16)); env.put("GUARD_PROJECTNAME", config.projectname); - env.put("GUARD_TOKEN", protectToken); + if(protectToken != null) + env.put("GUARD_TOKEN", protectToken); if(config.guardLicenseName != null) env.put("GUARD_LICENSE_NAME", config.guardLicenseName); if(config.guardLicenseKey != null)