Skip to content

Commit

Permalink
Fixed Plater support (close #362)
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Apr 5, 2023
1 parent 14a4d56 commit b0e07df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CB/Wago.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def parse_storage_internal(self, data):
def parse_storage(self):
with open(Path(f'WTF/Account/{self.accountName}/SavedVariables/Plater.lua'), 'r', encoding='utf-8',
errors='ignore') as file:
data = file.read().replace('PlaterDB = {', '{')
data = file.read().replace('PlaterDB = {', '{', 1).rsplit('PlaterLanguage = {', 1)[0]
platerdata = self.lua.eval(data)
for profile in platerdata['profiles']:
data = platerdata['profiles'][profile]['script_data']
Expand Down

0 comments on commit b0e07df

Please sign in to comment.