Cleanup (#2111)
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user