Skip to content

Commit f0f5695

Browse files
committed
changes updateMissionList to true for a test
1 parent bee6f7f commit f0f5695

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

extensions/dsmc/extension.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ async def prepare(self) -> bool:
6666
self.log.error(' => DSMC_updateMissionList missing in DSMC_Dedicated_Server_options.lua! '
6767
'Check your config and / or update DSMC!')
6868
return False
69-
if self.locals.get('DSMC_updateMissionList', True) or self.locals.get('DSMC_AutosaveExit_time', 0):
69+
if not self.locals.get('DSMC_updateMissionList', True) or self.locals.get('DSMC_AutosaveExit_time', 0):
7070
dcs_home = self.server.instance.home
7171
shutil.copy2(os.path.join(dcs_home, 'DSMC_Dedicated_Server_options.lua'),
7272
os.path.join(dcs_home, 'DSMC_Dedicated_Server_options.lua.bak'))
@@ -79,8 +79,8 @@ async def prepare(self) -> bool:
7979
line = "DSMC_24_7_serverStandardSetup = false -- multiple valid values. This option is a simplified setup for the specific server autosave layout. You can input:"
8080
self.locals['DSMC_24_7_serverStandardSetup'] = False
8181
elif line.strip().startswith('DSMC_updateMissionList'):
82-
line = line.replace('true', 'false', 1)
83-
self.locals['DSMC_updateMissionList'] = False
82+
line = line.replace('false', 'true', 1)
83+
self.locals['DSMC_updateMissionList'] = True
8484
elif line.strip().startswith('DSMC_AutosaveExit_time'):
8585
line = line.replace(str(self.locals['DSMC_AutosaveExit_time']), '0', 1)
8686
self.locals['DSMC_AutosaveExit_time'] = 0

0 commit comments

Comments
 (0)