Fix being able to pull entities outside of your container (#1533)
This commit is contained in:
@@ -502,6 +502,17 @@ namespace Content.Server.GameObjects.Components.GUI
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var isOwnerContained = ContainerHelpers.TryGetContainer(Owner, out var ownerContainer);
|
||||||
|
var isPullableContained = ContainerHelpers.TryGetContainer(pullable.Owner, out var pullableContainer);
|
||||||
|
|
||||||
|
if (isOwnerContained || isPullableContained)
|
||||||
|
{
|
||||||
|
if (ownerContainer != pullableContainer)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (IsPulling)
|
if (IsPulling)
|
||||||
{
|
{
|
||||||
StopPull();
|
StopPull();
|
||||||
|
|||||||
Reference in New Issue
Block a user