feat: update vfx
This commit is contained in:
@@ -491,6 +491,12 @@ func submit_to_leaderboard() -> void:
|
||||
|
||||
func get_display_name(fallback: String = "Guest") -> String:
|
||||
if not is_profile_loaded:
|
||||
# Profile storage (inventory/stats/fragments) may still be loading, but
|
||||
# AuthManager.current_user is populated before auth_completed fires, so the
|
||||
# real name is already available — prefer it over the guest fallback to
|
||||
# avoid a logged-in host being registered as "Guest" when acting quickly.
|
||||
if AuthManager.current_user.has("display_name"):
|
||||
return AuthManager.current_user["display_name"]
|
||||
return fallback
|
||||
return profile.get("display_name", fallback)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user