@@ -5,7 +5,6 @@ using Content.Shared.GameObjects.EntitySystems;
|
||||
using Content.Shared.GameObjects.Verbs;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Localization;
|
||||
using Robust.Shared.Physics;
|
||||
|
||||
namespace Content.Server.GameObjects.Components.Pulling
|
||||
{
|
||||
@@ -32,15 +31,15 @@ namespace Content.Server.GameObjects.Components.Pulling
|
||||
}
|
||||
|
||||
if (!user.HasComponent<ISharedHandsComponent>() ||
|
||||
!user.TryGetComponent(out IPhysBody? userPhysics) ||
|
||||
!component.Owner.TryGetComponent(out IPhysBody? targetPhysics) ||
|
||||
targetPhysics.BodyType == BodyType.Static)
|
||||
!user.TryGetComponent(out IPhysicsComponent? userPhysics) ||
|
||||
!component.Owner.TryGetComponent(out IPhysicsComponent? targetPhysics) ||
|
||||
targetPhysics.Anchored)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
data.Visibility = VerbVisibility.Visible;
|
||||
data.Text = component.Puller == userPhysics.Entity
|
||||
data.Text = component.Puller == userPhysics
|
||||
? Loc.GetString("Stop pulling")
|
||||
: Loc.GetString("Pull");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user