Fix could not patch on very first run

This commit is contained in:
Thoronium
2023-03-01 21:05:16 -07:00
parent f44dfeb79d
commit 20a80e5625
2 changed files with 35 additions and 35 deletions

View File

@@ -121,23 +121,19 @@ export default class ServerLaunchSection extends React.Component<IProps, IState>
}
if (gameVersion?.major == 2 && gameVersion?.minor < 9) {
alert(
'Game version is too old for RSA patching. Please disable RSA patching in the settings and try again.'
)
alert('Game version is too old for RSA patching. Please disable RSA patching in the settings and try again.')
return
}
if (gameVersion?.major == 3 && gameVersion?.minor < 1) {
alert(
'Game version is too old for RSA patching. Please disable RSA patching in the settings and try again.'
)
alert('Game version is too old for RSA patching. Please disable RSA patching in the settings and try again.')
return
}
const patched = await patchGame()
if (!patched) {
alert('Could not patch game!')
alert('Could not patch! Try launching again, or patching manually.')
return
}
}