mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-13 23:54:48 +01:00
Fix could not patch on very first run
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user