Skip to content

Commit

Permalink
Added slots to forge events
Browse files Browse the repository at this point in the history
  • Loading branch information
mindstorm38 committed Aug 11, 2023
1 parent 844f0da commit eaa3c2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions portablemc/forge.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,12 +393,14 @@ def __init__(self, forge_version: str, alias: bool) -> None:
class ForgePostProcessingEvent:
"""Event triggered when a post processing task is starting.
"""
__slots__ = "task",
def __init__(self, task: str) -> None:
self.task = task

class ForgePostProcessedEvent:
"""Event triggered when forge post processing has finished, the game is ready to run.
"""
__slots__ = tuple()


def request_promo_versions() -> Dict[str, str]:
Expand Down

0 comments on commit eaa3c2d

Please sign in to comment.