Fixes server crash when clicking empty hand with full hand
This commit is contained in:
@@ -462,8 +462,8 @@ namespace Content.Server.GameObjects
|
|||||||
var playerEntity = session.AttachedEntity;
|
var playerEntity = session.AttachedEntity;
|
||||||
var used = GetActiveHand?.Owner;
|
var used = GetActiveHand?.Owner;
|
||||||
|
|
||||||
if (playerEntity == Owner && used != null)
|
if (playerEntity == Owner && used != null && slot.ContainedEntity != null)
|
||||||
{
|
{
|
||||||
var interactionSystem = _entitySystemManager.GetEntitySystem<InteractionSystem>();
|
var interactionSystem = _entitySystemManager.GetEntitySystem<InteractionSystem>();
|
||||||
interactionSystem.Interaction(Owner, used, slot.ContainedEntity,
|
interactionSystem.Interaction(Owner, used, slot.ContainedEntity,
|
||||||
GridCoordinates.Nullspace);
|
GridCoordinates.Nullspace);
|
||||||
|
|||||||
Reference in New Issue
Block a user