From 756a790f98c0acbb7c7f592d2d1e4946602713aa Mon Sep 17 00:00:00 2001 From: wixoaGit Date: Thu, 23 Jan 2025 22:45:42 -0500 Subject: [PATCH] Fix appearance-load callbacks being called before the appearance is initialized --- OpenDreamClient/Rendering/ClientAppearanceSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenDreamClient/Rendering/ClientAppearanceSystem.cs b/OpenDreamClient/Rendering/ClientAppearanceSystem.cs index 00caf24338..35df689a9e 100644 --- a/OpenDreamClient/Rendering/ClientAppearanceSystem.cs +++ b/OpenDreamClient/Rendering/ClientAppearanceSystem.cs @@ -52,7 +52,7 @@ public void SetAllAppearances(Dictionary appearances) } public void LoadAppearance(uint appearanceId, Action loadCallback) { - if (_appearances.TryGetValue(appearanceId, out var appearance)) { + if (_appearances.TryGetValue(appearanceId, out var appearance) && _receivedAllAppearancesMsg) { loadCallback(appearance); return; }