Merge pull request #226 from Moneyl/empty-hand-crash-fix

Empty hand crash fix
This commit is contained in:
Pieter-Jan Briers
2019-05-18 23:23:56 +02:00
committed by GitHub

View File

@@ -462,8 +462,8 @@ namespace Content.Server.GameObjects
var playerEntity = session.AttachedEntity;
var used = GetActiveHand?.Owner;
if (playerEntity == Owner && used != null)
{
if (playerEntity == Owner && used != null && slot.ContainedEntity != null)
{
var interactionSystem = _entitySystemManager.GetEntitySystem<InteractionSystem>();
interactionSystem.Interaction(Owner, used, slot.ContainedEntity,
GridCoordinates.Nullspace);