Scoreboard now works! Finally!
This commit is contained in:
parent
dd350c0285
commit
e8bf4f9565
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user