From f9603e0a5afc3977facfbaad0e5f193a1ff01d58 Mon Sep 17 00:00:00 2001 From: teatov Date: Sat, 15 Feb 2025 02:04:54 +1000 Subject: [PATCH] tweak consoler --- scripts/globals/consoler.gd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/globals/consoler.gd b/scripts/globals/consoler.gd index 7f28159..16f13c6 100644 --- a/scripts/globals/consoler.gd +++ b/scripts/globals/consoler.gd @@ -17,5 +17,7 @@ func _process_input() -> void: while text != "quit": print("Insert some text: ") text = OS.read_string_from_stdin().strip_edges() - Referencer.chat.send_server_message(text) + print("Inserted text: ",text) + if Referencer.chat: + Referencer.chat.send_server_message(text) get_tree().quit()