Fixes ActivateItemInWorld working with things outside your container (#5424)

* Fixes InteractionActivate working inside containers

* This makes more sense now that i think about it
This commit is contained in:
AJCM-git
2021-11-21 01:06:44 -04:00
committed by GitHub
parent 515cac3fb0
commit 3da31d5146

View File

@@ -184,6 +184,9 @@ namespace Content.Server.Interaction
if (!EntityManager.TryGetEntity(uid, out var used))
return false;
if (user.IsInContainer())
return false;
InteractionActivate(user, used);
return true;
}