More error fixes.
This commit is contained in:
@@ -28,7 +28,7 @@ namespace Content.Shared.Pulling.Components
|
||||
/// The current entity pulling this component.
|
||||
/// SharedPullingStateManagementSystem should be writing this. This means definitely not you.
|
||||
/// </summary>
|
||||
public IEntity? Puller { get; set; }
|
||||
public EntityUid? Puller { get; set; }
|
||||
/// <summary>
|
||||
/// The pull joint.
|
||||
/// SharedPullingStateManagementSystem should be writing this. This means probably not you.
|
||||
@@ -71,7 +71,7 @@ namespace Content.Shared.Pulling.Components
|
||||
return;
|
||||
}
|
||||
|
||||
if (!IoCManager.Resolve<IEntityManager>().TryGetComponent<SharedPullerComponent?>(entity, out var comp))
|
||||
if (!IoCManager.Resolve<IEntityManager>().TryGetComponent<SharedPullerComponent?>(entity.Value, out var comp))
|
||||
{
|
||||
Logger.Error($"Entity {state.Puller.Value} for pulling had no Puller component");
|
||||
// ensure it disconnects from any different puller, still
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace Content.Shared.Pulling.Components
|
||||
public float SprintSpeedModifier => Pulling == null ? 1.0f : 0.75f;
|
||||
|
||||
[ViewVariables]
|
||||
public IEntity? Pulling { get; set; }
|
||||
public EntityUid? Pulling { get; set; }
|
||||
|
||||
protected override void Shutdown()
|
||||
{
|
||||
|
||||
@@ -7,13 +7,13 @@ namespace Content.Shared.Pulling.Events
|
||||
/// </summary>
|
||||
public class StartPullAttemptEvent : CancellableEntityEventArgs
|
||||
{
|
||||
public StartPullAttemptEvent(IEntity puller, IEntity pulled)
|
||||
public StartPullAttemptEvent(EntityUid puller, EntityUid pulled)
|
||||
{
|
||||
Puller = puller;
|
||||
Pulled = pulled;
|
||||
}
|
||||
|
||||
public IEntity Puller { get; }
|
||||
public IEntity Pulled { get; }
|
||||
public EntityUid Puller { get; }
|
||||
public EntityUid Pulled { get; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user