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()