player.gd refactor progress
This commit is contained in:
@@ -80,7 +80,7 @@ func host_game():
|
||||
return
|
||||
print("Hosting match via Nakama Bridge...")
|
||||
var result = await bridge.create_match()
|
||||
if result.is_exception():
|
||||
if result and result.is_exception():
|
||||
emit_signal("match_join_error", result.get_exception().message)
|
||||
|
||||
func join_game(match_id: String):
|
||||
@@ -89,7 +89,7 @@ func join_game(match_id: String):
|
||||
return
|
||||
print("Joining match: ", match_id)
|
||||
var result = await bridge.join_match(match_id)
|
||||
if result.is_exception():
|
||||
if result and result.is_exception():
|
||||
emit_signal("match_join_error", result.get_exception().message)
|
||||
|
||||
# --- Callbacks ---
|
||||
|
||||
Reference in New Issue
Block a user