call dedicated host with call_deferred
All checks were successful
Build Godot Project1 / godot (cadastery-server.x86_64, server) (push) Successful in 26s
Build Godot Project1 / godot (cadastery.exe, windows) (push) Successful in 26s
Build Godot Project1 / godot (cadastery.x86_64, linux) (push) Successful in 22s
Build Godot Project1 / godot (cadastery.zip, mac) (push) Successful in 31s
All checks were successful
Build Godot Project1 / godot (cadastery-server.x86_64, server) (push) Successful in 26s
Build Godot Project1 / godot (cadastery.exe, windows) (push) Successful in 26s
Build Godot Project1 / godot (cadastery.x86_64, linux) (push) Successful in 22s
Build Godot Project1 / godot (cadastery.zip, mac) (push) Successful in 31s
This commit is contained in:
parent
a498a3a69f
commit
b089f5bf26
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user