Predict StorageComponent (#19682)

This commit is contained in:
metalgearsloth
2023-09-27 21:59:12 +02:00
committed by Debug
parent 21fdea5e5a
commit f38f0ab614
68 changed files with 1124 additions and 1121 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
using Content.Server.Storage.Components;
using Content.Server.Storage.EntitySystems;
using Content.Shared.Popups;
using Content.Shared.Stacks;
using Content.Shared.Storage;
using Content.Shared.Verbs;
using JetBrains.Annotations;
using Robust.Server.Containers;
@@ -163,9 +163,9 @@ namespace Content.Server.Stack
return;
if (_container.TryGetContainingContainer(uid, out var container) &&
TryComp<ServerStorageComponent>(container.Owner, out var storage))
TryComp<StorageComponent>(container.Owner, out var storage))
{
_storage.UpdateStorageUI(container.Owner, storage);
_storage.UpdateUI(container.Owner, storage);
}
Hands.PickupOrDrop(userUid, split);