Scoreboard now works! Finally!

This commit is contained in:
Storm Dragon 2020-09-04 11:17:05 -04:00
parent dd350c0285
commit e8bf4f9565

View File

@ -47,7 +47,7 @@ class scoreboard():
self.oldScores = []
for i in range(1, 11):
try:
self.oldScores.insert(i - 1, localConfig.getint("scoreboard", i))
self.oldScores.insert(i - 1, localConfig.getint("scoreboard", str(i)))
except:
pass
self.oldScores.insert(i - 1, 0)
@ -104,13 +104,13 @@ def read_config(readGlobal = False):
if readGlobal == False:
try:
with open(gamePath + "/config.ini", 'r') as configfile:
localConfig.read(configfile)
localConfig.read_file(configfile)
except:
pass
else:
try:
with open(globalPath + "/config.ini", 'r') as configfile:
globalConfig.read(configfile)
globalConfig.read_file(configfile)
except:
pass