This commit is contained in:
Swept
2020-09-20 15:29:11 +00:00
committed by GitHub
parent 9c72008ece
commit 0ea8792501
22 changed files with 24 additions and 45 deletions

View File

@@ -27,8 +27,6 @@ namespace Content.Server.GameObjects.Components.Movement
[ComponentReference(typeof(IClimbable))]
public class ClimbableComponent : SharedClimbableComponent, IDragDropOn
{
[Dependency] private readonly IPlayerManager _playerManager = default!;
/// <summary>
/// The range from which this entity can be climbed.
/// </summary>

View File

@@ -26,7 +26,6 @@ namespace Content.Server.GameObjects.Components.Movement
[RegisterComponent]
public class ServerTeleporterComponent : Component, IAfterInteract
{
[Dependency] private readonly IMapManager _mapManager = default!;
[Dependency] private readonly IServerEntityManager _serverEntityManager = default!;
[Dependency] private readonly IRobustRandom _spreadRandom = default!;
@@ -96,7 +95,7 @@ namespace Content.Server.GameObjects.Components.Movement
public void TryDirectedTeleport(IEntity user, MapCoordinates mapCoords)
{
// Checks
if ((user.Transform.WorldPosition - mapCoords.Position).LengthSquared > (_range * _range))
if ((user.Transform.WorldPosition - mapCoords.Position).LengthSquared > _range * _range)
{
return;
}