From efbdb34abdbc872d9010159f92237833d15e2a89 Mon Sep 17 00:00:00 2001 From: AleaJactaEst Date: Wed, 25 Oct 2023 22:34:36 +0200 Subject: [PATCH] update client to ignore is network didn't work --- client/scenes/main.gd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/scenes/main.gd b/client/scenes/main.gd index b64a980..cc70051 100644 --- a/client/scenes/main.gd +++ b/client/scenes/main.gd @@ -32,7 +32,10 @@ func connect_to_host(): print("Connect to : " + listen_ip + " : " + str(listen_port)) dataEnet = enet.connect_to_host(listen_ip, listen_port, 10) print(dataEnet) - if not dataEnet.is_active(): + if not dataEnet: + print("ERROR dataEnet == null: ") + return + elif not dataEnet.is_active(): print("ERROR enet.connect_to_host: ", dataEnet.is_active()) return