diff --git a/Launcher/src/main/java/pro/gravit/launcher/client/ClientLauncher.java b/Launcher/src/main/java/pro/gravit/launcher/client/ClientLauncher.java index 7cd52285..c816ddc9 100644 --- a/Launcher/src/main/java/pro/gravit/launcher/client/ClientLauncher.java +++ b/Launcher/src/main/java/pro/gravit/launcher/client/ClientLauncher.java @@ -414,9 +414,16 @@ public static Process launch( builder.redirectErrorStream(true); builder.redirectOutput(Redirect.PIPE); } + List command = builder.command(); // Let's rock! ClientHookManager.preStartHook.hook(context, builder); process = builder.start(); + if (builder.command() != command) { + LogHelper.error("Something strange cheating..."); + System.exit(100); + clientStarted = false; + return null; + } if(ClientHookManager.postStartHook.hook(context, builder)) return process; if (!pipeOutput) { for (int i = 0; i < 50; ++i) {