From d08b84c0026a64db71a177024b19ac5b8b1e5059 Mon Sep 17 00:00:00 2001 From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Mon, 15 Aug 2022 07:52:17 +1200 Subject: [PATCH] Log storage error (#10588) --- Content.Server/Storage/EntitySystems/StorageSystem.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Content.Server/Storage/EntitySystems/StorageSystem.cs b/Content.Server/Storage/EntitySystems/StorageSystem.cs index 66a6b6f23c..b580194ecf 100644 --- a/Content.Server/Storage/EntitySystems/StorageSystem.cs +++ b/Content.Server/Storage/EntitySystems/StorageSystem.cs @@ -349,6 +349,12 @@ namespace Content.Server.Storage.EntitySystems if (args.Session.AttachedEntity is not EntityUid player) return; + if (!Exists(args.InteractedItemUID)) + { + Logger.Error($"Player {args.Session} interacted with non-existent item {args.InteractedItemUID} stored in {ToPrettyString(uid)}"); + return; + } + if (!_actionBlockerSystem.CanInteract(player, args.InteractedItemUID)) return;