From b089f5bf26f7e808ac2206b4dfb3b209485d2f15 Mon Sep 17 00:00:00 2001 From: teatov Date: Wed, 12 Feb 2025 22:54:10 +1000 Subject: [PATCH] call dedicated host with `call_deferred` --- scripts/ui/play_menu.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ui/play_menu.gd b/scripts/ui/play_menu.gd index 31928ad..dc0d416 100644 --- a/scripts/ui/play_menu.gd +++ b/scripts/ui/play_menu.gd @@ -9,7 +9,7 @@ extends Panel func _ready() -> void: if OS.has_feature("dedicated_server") or DisplayServer.get_name() == "headless": - Networker.host_game(true) + Networker.call_deferred("host_game", true) return _host_button.pressed.connect(_on_host_button_pressed)