Updating max_players.py to api 9

This commit is contained in:
Vishal 2025-01-21 22:01:28 +05:30 committed by GitHub
parent b520093917
commit 1b190ff3a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 4 deletions

View file

@ -331,6 +331,7 @@
} }
], ],
"versions": { "versions": {
"1.1.0": null,
"1.0.1": { "1.0.1": {
"api_version": 8, "api_version": 8,
"commit_sha": "2b5c9ee", "commit_sha": "2b5c9ee",

View file

@ -1,8 +1,6 @@
# Porting to api 8 made easier by baport.(https://github.com/bombsquad-community/baport)
"""===========MAX_PLAYERS===========""" """===========MAX_PLAYERS==========="""
# ba_meta require api 8 # ba_meta require api 9
# (see https://ballistica.net/wiki/meta-tag-system)
from __future__ import annotations from __future__ import annotations
from typing import TYPE_CHECKING from typing import TYPE_CHECKING
@ -369,4 +367,4 @@ class MaxPlayersPlugin(babase.Plugin):
MultiTeamSession.get_max_players = get_max_players MultiTeamSession.get_max_players = get_max_players
GatherWindow.__init__ = __gather_init__ GatherWindow.__init__ = __gather_init__
GatherWindow._save_state = _save_state GatherWindow._save_state = _save_state
GatherWindow._restore_state = _restore_state GatherWindow._restore_state = _restore_state