From d68f8d35f82e57f1e067aa9e13fd74cbbd0980c3 Mon Sep 17 00:00:00 2001 From: tpart Date: Sun, 22 Sep 2024 15:20:08 +0200 Subject: Disable outdated servers in server list --- client/menu/play.gd | 2 ++ 1 file changed, 2 insertions(+) (limited to 'client/menu') diff --git a/client/menu/play.gd b/client/menu/play.gd index 0bd13669..65da0372 100644 --- a/client/menu/play.gd +++ b/client/menu/play.gd @@ -60,6 +60,8 @@ func _on_request_completed(result: int, _response_code: int, _headers: PackedStr b.text_overrun_behavior = TextServer.OVERRUN_TRIM_WORD_ELLIPSIS b.text = "%s (%d players)" % [i.name, i.players_online] # TODO: Implement fallback address correctly + if i.version[0] != Multiplayer.VERSION_MAJOR or i.version[1] > Multiplayer.VERSION_MINOR: + b.disabled = true b.pressed.connect(connect_to.bind(i.address[0])) server_list.add_child(b) -- cgit v1.2.3-70-g09d2