Predict StorageComponent (#19682)
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
using Content.Client.Clothing;
|
||||
using Content.Client.Examine;
|
||||
using Content.Client.Storage;
|
||||
using Content.Client.UserInterface.Controls;
|
||||
using Content.Client.Verbs.UI;
|
||||
using Content.Shared.Clothing.Components;
|
||||
@@ -9,6 +8,7 @@ using Content.Shared.Interaction;
|
||||
using Content.Shared.Interaction.Events;
|
||||
using Content.Shared.Inventory;
|
||||
using Content.Shared.Inventory.Events;
|
||||
using Content.Shared.Storage;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Client.GameObjects;
|
||||
using Robust.Client.Player;
|
||||
@@ -101,7 +101,7 @@ namespace Content.Client.Inventory
|
||||
if (args.Equipee != _playerManager.LocalPlayer?.ControlledEntity)
|
||||
return;
|
||||
var update = new SlotSpriteUpdate(args.Equipment, args.SlotGroup, args.Slot,
|
||||
HasComp<ClientStorageComponent>(args.Equipment));
|
||||
HasComp<StorageComponent>(args.Equipment));
|
||||
OnSpriteUpdate?.Invoke(update);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user