mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-13 23:54:48 +01:00
format
This commit is contained in:
@@ -113,18 +113,24 @@ export default class ServerLaunchSection extends React.Component<IProps, IState>
|
||||
const gameVersion = await getGameVersion()
|
||||
console.log(gameVersion)
|
||||
|
||||
if(gameVersion == null) {
|
||||
alert('Game version could not be determined. Please make sure you have the game correctly selected and try again.')
|
||||
if (gameVersion == null) {
|
||||
alert(
|
||||
'Game version could not be determined. Please make sure you have the game correctly selected and try again.'
|
||||
)
|
||||
return
|
||||
}
|
||||
|
||||
if(gameVersion?.major == 2 && gameVersion?.minor < 8) {
|
||||
alert('Game version is too old for metadata patching. Please disable metadata patching in the settings and try again.')
|
||||
if (gameVersion?.major == 2 && gameVersion?.minor < 8) {
|
||||
alert(
|
||||
'Game version is too old for metadata patching. Please disable metadata patching in the settings and try again.'
|
||||
)
|
||||
return
|
||||
}
|
||||
|
||||
if(gameVersion?.major == 3 && gameVersion?.minor >= 1) {
|
||||
alert('Game version is too new for metadata patching. Please disable metadata patching in the settings to launch the game.\nNOTE: You will require a UA patch to play the game.')
|
||||
if (gameVersion?.major == 3 && gameVersion?.minor >= 1) {
|
||||
alert(
|
||||
'Game version is too new for metadata patching. Please disable metadata patching in the settings to launch the game.\nNOTE: You will require a UA patch to play the game.'
|
||||
)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user