Skip to content

Commit

Permalink
Core: have APPlayerContainer return manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
Berserker66 committed Dec 3, 2024
1 parent 935a9c1 commit 5cbb428
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion worlds/Files.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,12 @@ def __init__(self, path: Optional[str] = None, player: Optional[int] = None,
self.player_name = player_name
self.server = server

def read_contents(self, opened_zipfile: zipfile.ZipFile) -> None:
def read_contents(self, opened_zipfile: zipfile.ZipFile) -> Dict[str, Any]:
manifest = super().read_contents(opened_zipfile)
self.player = manifest["player"]
self.server = manifest["server"]
self.player_name = manifest["player_name"]
return manifest

def get_manifest(self) -> Dict[str, Any]:
manifest = super().get_manifest()
Expand Down

0 comments on commit 5cbb428

Please sign in to comment.