Skip to content

Commit

Permalink
Fix appearance-load callbacks being called before the appearance is i…
Browse files Browse the repository at this point in the history
…nitialized
  • Loading branch information
wixoaGit committed Jan 24, 2025
1 parent 114e76e commit 756a790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenDreamClient/Rendering/ClientAppearanceSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void SetAllAppearances(Dictionary<uint, ImmutableAppearance> appearances)
}

public void LoadAppearance(uint appearanceId, Action<ImmutableAppearance> loadCallback) {
if (_appearances.TryGetValue(appearanceId, out var appearance)) {
if (_appearances.TryGetValue(appearanceId, out var appearance) && _receivedAllAppearancesMsg) {
loadCallback(appearance);
return;
}
Expand Down

0 comments on commit 756a790

Please sign in to comment.