Fix verb menu not working for clientside entities (#1400)

Co-authored-by: Pieter-Jan Briers <pieterjan.briers@gmail.com>
This commit is contained in:
DrSmugleaf
2020-07-23 00:56:30 +02:00
committed by GitHub
parent a80bcda75b
commit 46f13da26d
2 changed files with 7 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ using Robust.Shared.GameObjects.Systems;
using Robust.Shared.Interfaces.GameObjects;
using Robust.Shared.IoC;
using static Content.Shared.GameObjects.EntitySystemMessages.VerbSystemMessages;
using Logger = Robust.Shared.Log.Logger;
namespace Content.Server.Interfaces.GameObjects.Components.Interaction
{
@@ -85,6 +86,7 @@ namespace Content.Server.Interfaces.GameObjects.Components.Interaction
if (!_entityManager.TryGetEntity(req.EntityUid, out var entity))
{
Logger.Warning($"{nameof(RequestVerbs)} called on a nonexistant entity with id {req.EntityUid} by player {player}.");
return;
}