Fix bug with animated sprites not being initially animated (#3381)

Sets auto animated of client inventory to true, enables cosmos bedsheets to be
animated when first equipping.

Fixes #1144
This commit is contained in:
Ygg01
2021-02-23 03:05:24 +01:00
committed by GitHub
parent 1801e6ec60
commit 0f54a01d24

View File

@@ -186,6 +186,7 @@ namespace Content.Client.GameObjects.Components.HUD.Inventory
var (rsi, state) = data.Value; var (rsi, state) = data.Value;
_sprite.LayerSetVisible(slot, true); _sprite.LayerSetVisible(slot, true);
_sprite.LayerSetState(slot, state, rsi); _sprite.LayerSetState(slot, state, rsi);
_sprite.LayerSetAutoAnimated(slot, true);
if (slot == Slots.INNERCLOTHING) if (slot == Slots.INNERCLOTHING)
{ {