diff --git a/index.json b/index.json index 3369fcb..871e4f6 100644 --- a/index.json +++ b/index.json @@ -1,6 +1,7 @@ { "plugin_manager_url": "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugin_manager.py", "versions": { + "1.0.2": null, "1.0.1": { "api_version": 8, "commit_sha": "7dba50e", @@ -116,4 +117,4 @@ "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugins/maps.json" ], "external_source_url": "https://github.com/{repository}/{content_type}/{tag}/category.json" -} \ No newline at end of file +} diff --git a/plugin_manager.py b/plugin_manager.py index e883fba..a894ba1 100644 --- a/plugin_manager.py +++ b/plugin_manager.py @@ -799,7 +799,7 @@ class Plugin: def latest_compatible_version(self): if self._latest_compatible_version is None: for number, info in self.info["versions"].items(): - if info["api_version"] == babase.app.api_version: + if info["api_version"] == babase.app.env.api_version: self._latest_compatible_version = PluginVersion( self, (number, info), @@ -1233,7 +1233,7 @@ class PluginManager: async def get_update_details(self): index = await self.get_index() for version, info in index["versions"].items(): - if info["api_version"] != babase.app.api_version: + if info["api_version"] != babase.app.env.api_version: # No point checking a version of the API game doesn't support. continue if version == PLUGIN_MANAGER_VERSION: diff --git a/plugins/utilities.json b/plugins/utilities.json index f9fbe0b..341f9bc 100644 --- a/plugins/utilities.json +++ b/plugins/utilities.json @@ -722,6 +722,7 @@ } ], "versions": { + "2.0.1": null, "2.0.0": { "api_version": 8, "commit_sha": "9340deb", @@ -899,4 +900,4 @@ } } } -} \ No newline at end of file +} diff --git a/plugins/utilities/practice_tools.py b/plugins/utilities/practice_tools.py index 1c7fe08..88dcc80 100644 --- a/plugins/utilities/practice_tools.py +++ b/plugins/utilities/practice_tools.py @@ -185,7 +185,7 @@ class Practice(Plugin): def on_app_running(self) -> None: """Plugin start point.""" - if app.build_number < 20427: + if app.env.build_number < 20427: bui.screenmessage( 'ok', color=(.8, .1, .1))