From 32f66b6f9e1e436a15bd3f05b7273999d637dca2 Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Thu, 23 Apr 2020 16:04:23 +0200 Subject: [PATCH] Clothing visualization sets RSI and state atomically. --- .../Components/HUD/Inventory/ClientInventoryComponent.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Content.Client/GameObjects/Components/HUD/Inventory/ClientInventoryComponent.cs b/Content.Client/GameObjects/Components/HUD/Inventory/ClientInventoryComponent.cs index c4bd9b4489..a07fc67195 100644 --- a/Content.Client/GameObjects/Components/HUD/Inventory/ClientInventoryComponent.cs +++ b/Content.Client/GameObjects/Components/HUD/Inventory/ClientInventoryComponent.cs @@ -127,8 +127,7 @@ namespace Content.Client.GameObjects { var (rsi, state) = data.Value; _sprite.LayerSetVisible(slot, true); - _sprite.LayerSetRSI(slot, rsi); - _sprite.LayerSetState(slot, state); + _sprite.LayerSetState(slot, state, rsi); if (slot == Slots.INNERCLOTHING) {