Fixes server crash when clicking empty hand with full hand

This commit is contained in:
moneyl
2019-05-18 13:26:58 -04:00
parent d81254e389
commit 916b1521a0

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);