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)