Show nothing instead of error sprite when item has no inhands (#3992)
This commit is contained in:
@@ -178,6 +178,9 @@ namespace Content.Client.GameObjects.Components.Items
|
|||||||
var prefix = item.EquippedPrefix;
|
var prefix = item.EquippedPrefix;
|
||||||
var state = prefix != null ? $"{prefix}-inhand-{handName}" : $"inhand-{handName}";
|
var state = prefix != null ? $"{prefix}-inhand-{handName}" : $"inhand-{handName}";
|
||||||
|
|
||||||
|
if (!rsi.TryGetState(state, out _))
|
||||||
|
return;
|
||||||
|
|
||||||
var color = item.Color;
|
var color = item.Color;
|
||||||
|
|
||||||
_sprite.LayerSetColor($"hand-{name}", color);
|
_sprite.LayerSetColor($"hand-{name}", color);
|
||||||
|
|||||||
Reference in New Issue
Block a user