Makes storage insertion failure more explicit (#9465)

This commit is contained in:
ike709
2022-07-06 19:45:00 -05:00
committed by GitHub
parent 83a9e314cc
commit 4645dbb33c
3 changed files with 28 additions and 5 deletions

View File

@@ -135,7 +135,7 @@ namespace Content.Server.PneumaticCannon
if (EntityManager.TryGetComponent<SharedItemComponent?>(args.Used, out var item)
&& EntityManager.TryGetComponent<ServerStorageComponent?>(component.Owner, out var storage))
{
if (_storageSystem.CanInsert(component.Owner, args.Used, storage))
if (_storageSystem.CanInsert(component.Owner, args.Used, out _, storage))
{
_storageSystem.Insert(component.Owner, args.Used, storage);
args.User.PopupMessage(Loc.GetString("pneumatic-cannon-component-insert-item-success",