Fix not being able to buckle into an entity that is in the same container as you
This commit is contained in:
@@ -142,10 +142,15 @@ namespace Content.Server.GameObjects.Components.Mobs
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ContainerHelpers.IsInContainer(Owner))
|
if (ContainerHelpers.TryGetContainer(Owner, out var ownerContainer))
|
||||||
{
|
{
|
||||||
_notifyManager.PopupMessage(strap.Owner, user,
|
if (!ContainerHelpers.TryGetContainer(strap.Owner, out var strapContainer) ||
|
||||||
Loc.GetString("You can't reach there!"));
|
ownerContainer != strapContainer)
|
||||||
|
{
|
||||||
|
_notifyManager.PopupMessage(strap.Owner, user,
|
||||||
|
Loc.GetString("You can't reach there!"));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!user.HasComponent<HandsComponent>())
|
if (!user.HasComponent<HandsComponent>())
|
||||||
|
|||||||
Reference in New Issue
Block a user