Log storage error (#10588)

This commit is contained in:
Leon Friedrich
2022-08-15 07:52:17 +12:00
committed by GitHub
parent dc8f6d6bac
commit d08b84c002

View File

@@ -349,6 +349,12 @@ namespace Content.Server.Storage.EntitySystems
if (args.Session.AttachedEntity is not EntityUid player) if (args.Session.AttachedEntity is not EntityUid player)
return; 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)) if (!_actionBlockerSystem.CanInteract(player, args.InteractedItemUID))
return; return;