Fix deprecated config.getint() method

config.getint() is deprecated since EDMC 5.0.0 (ref: https://github.com/EDCD/EDMarketConnector/releases/tag/Release%2F5.0.0), now plugins should use config.get_int() instead
This commit is contained in:
norohind 2021-08-03 21:01:45 +05:00 committed by GitHub
parent 2c4646a6bc
commit 2a90980b03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -222,7 +222,7 @@ def edsm_data(event):
def get_setting():
setting = config.getint('habzone')
setting = config.get_int('habzone')
if setting == 0:
return SETTING_DEFAULT # Default to Earth-Like
elif setting == SETTING_NONE: