[FIX] Ещё 1 подарочек...

This commit is contained in:
Zaxar163 2019-09-24 17:54:22 +02:00
parent 555c6a6c0b
commit 29ed4c5cf7
No known key found for this signature in database
GPG key ID: 1FE4F2E1F053831B

View file

@ -414,9 +414,16 @@ public static Process launch(
builder.redirectErrorStream(true);
builder.redirectOutput(Redirect.PIPE);
}
List<String> 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) {