Show nothing instead of error sprite when item has no inhands (#3992)

This commit is contained in:
ShadowCommander
2021-05-12 15:43:53 -07:00
committed by GitHub
parent f0c1efed9b
commit 28d59908ca

View File

@@ -178,6 +178,9 @@ namespace Content.Client.GameObjects.Components.Items
var prefix = item.EquippedPrefix;
var state = prefix != null ? $"{prefix}-inhand-{handName}" : $"inhand-{handName}";
if (!rsi.TryGetState(state, out _))
return;
var color = item.Color;
_sprite.LayerSetColor($"hand-{name}", color);