Fix "You can't reach there!" message being created twice
This commit is contained in:
@@ -137,14 +137,17 @@ namespace Content.Server.GameObjects.Components.Mobs
|
|||||||
|
|
||||||
var strapPosition = strap.Owner.Transform.MapPosition;
|
var strapPosition = strap.Owner.Transform.MapPosition;
|
||||||
|
|
||||||
if (!InteractionChecks.InRangeUnobstructed(user, strapPosition, _range) ||
|
if (!InteractionChecks.InRangeUnobstructed(user, strapPosition, _range))
|
||||||
ContainerHelpers.IsInContainer(Owner))
|
|
||||||
{
|
{
|
||||||
_notifyManager.PopupMessage(user, user,
|
|
||||||
Loc.GetString("You can't reach there!"));
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ContainerHelpers.IsInContainer(Owner))
|
||||||
|
{
|
||||||
|
_notifyManager.PopupMessage(strap.Owner, user,
|
||||||
|
Loc.GetString("You can't reach there!"));
|
||||||
|
}
|
||||||
|
|
||||||
if (!user.HasComponent<HandsComponent>())
|
if (!user.HasComponent<HandsComponent>())
|
||||||
{
|
{
|
||||||
_notifyManager.PopupMessage(user, user,
|
_notifyManager.PopupMessage(user, user,
|
||||||
|
|||||||
Reference in New Issue
Block a user