Merge pull request #226 from Moneyl/empty-hand-crash-fix
Empty hand crash fix
This commit is contained in:
@@ -462,7 +462,7 @@ 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,
|
||||||
|
|||||||
Reference in New Issue
Block a user