fixed bug where you can host twice

This commit is contained in:
2025-08-21 20:51:11 -05:00
parent 0db8edef2a
commit 8445f5a944

View File

@@ -47,8 +47,11 @@ func _process(delta):
func create_lobby():
print("[HOST] 1. Attempting to create lobby...")
Steam.createLobby(Steam.LOBBY_TYPE_FRIENDS_ONLY, 4)
if lobby_id == 0:
Steam.createLobby(Steam.LOBBY_TYPE_FRIENDS_ONLY, 4)
else:
print("Cant host, already in a lobby")
func _on_lobby_created(connect: int, this_lobby_id: int):
if connect != 1: