From 2e12401de5397bc34378d40a5b05892a25d52032 Mon Sep 17 00:00:00 2001 From: Vishal Date: Sat, 25 Jan 2025 20:50:52 +0530 Subject: [PATCH] Fixing a bug --- plugins/utilities.json | 1 + plugins/utilities/rejoin.py | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/plugins/utilities.json b/plugins/utilities.json index 6d89910..849e61d 100644 --- a/plugins/utilities.json +++ b/plugins/utilities.json @@ -102,6 +102,7 @@ } ], "versions": { + "2.0.2": null, "2.0.1": { "api_version": 9, "commit_sha": "506451f", diff --git a/plugins/utilities/rejoin.py b/plugins/utilities/rejoin.py index e78c98c..6546fad 100644 --- a/plugins/utilities/rejoin.py +++ b/plugins/utilities/rejoin.py @@ -10,13 +10,13 @@ k = bs.connect_to_party def j(address, port=43210, print_progress=False): try: - if bs.get_connection_to_host_info() is not None: + if bool(bs.get_connection_to_host_info_2()): bs.disconnect_from_host() - m.i = address - m.p = port - k(m.i, m.p, print_progress) except: pass + m.i = address + m.p = port + k(m.i, m.p, print_progress) def R(s): @@ -32,4 +32,4 @@ def R(s): class byBordd(v): def __init__(s): m._refresh_in_game = R(m._refresh_in_game) - bs.connect_to_party = j + bs.connect_to_party = j \ No newline at end of file