Scoreboard now works! Finally!
This commit is contained in:
parent
dd350c0285
commit
e8bf4f9565
@ -47,7 +47,7 @@ class scoreboard():
|
|||||||
self.oldScores = []
|
self.oldScores = []
|
||||||
for i in range(1, 11):
|
for i in range(1, 11):
|
||||||
try:
|
try:
|
||||||
self.oldScores.insert(i - 1, localConfig.getint("scoreboard", i))
|
self.oldScores.insert(i - 1, localConfig.getint("scoreboard", str(i)))
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
self.oldScores.insert(i - 1, 0)
|
self.oldScores.insert(i - 1, 0)
|
||||||
@ -104,13 +104,13 @@ def read_config(readGlobal = False):
|
|||||||
if readGlobal == False:
|
if readGlobal == False:
|
||||||
try:
|
try:
|
||||||
with open(gamePath + "/config.ini", 'r') as configfile:
|
with open(gamePath + "/config.ini", 'r') as configfile:
|
||||||
localConfig.read(configfile)
|
localConfig.read_file(configfile)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
with open(globalPath + "/config.ini", 'r') as configfile:
|
with open(globalPath + "/config.ini", 'r') as configfile:
|
||||||
globalConfig.read(configfile)
|
globalConfig.read_file(configfile)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user