Fix humanoid appearance exception (#5133)
This commit is contained in:
@@ -102,8 +102,13 @@ namespace Content.Client.CharacterAppearance.Systems
|
||||
var layers = args.Args.Part.ToHumanoidLayers();
|
||||
// TODO BODY Layer color, sprite and state
|
||||
foreach (var layer in layers)
|
||||
{
|
||||
if (!sprite.LayerMapTryGet(layer, out _))
|
||||
continue;
|
||||
|
||||
sprite.LayerSetVisible(layer, true);
|
||||
}
|
||||
}
|
||||
|
||||
private void BodyPartRemoved(HumanoidAppearanceBodyPartRemovedEvent args)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user