Skip to content

Commit

Permalink
修正了一个小Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kressety committed Nov 12, 2023
1 parent a9ed4d6 commit 136db0d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@
from server.prep_server import prep_server

if __name__ == '__main__':
basicConfig()
basicConfig(level=INFO)

config = ConfigParser()
log = getLogger()
log.setLevel(INFO)

if not exists('config.ini'):
log.info('config.ini created. ')
Expand Down Expand Up @@ -53,7 +52,7 @@
server_meta['mod_loader'],
server_meta['game_version']
)
if config['client']['enable'].strip().lower() == 'yes':
if config['server']['enable'].strip().lower() == 'yes':
prep_server(
config['server']['server_path'],
server_meta['game_version'],
Expand Down

0 comments on commit 136db0d

Please sign in to comment.