Emergency revert for pulling (#24923)
Revert "Pulling rework (#20906)"
This reverts commit 0d8254b2a2.
This commit is contained in:
@@ -3,7 +3,8 @@ using Content.Shared.Administration.Logs;
|
||||
using Content.Shared.Database;
|
||||
using Content.Shared.Gravity;
|
||||
using Content.Shared.Physics;
|
||||
using Content.Shared.Movement.Pulling.Events;
|
||||
using Content.Shared.Physics.Pull;
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Physics;
|
||||
using Robust.Shared.Physics.Components;
|
||||
using Robust.Shared.Physics.Events;
|
||||
@@ -93,8 +94,8 @@ namespace Content.Shared.Throwing
|
||||
private void HandlePullStarted(PullStartedMessage message)
|
||||
{
|
||||
// TODO: this isn't directed so things have to be done the bad way
|
||||
if (EntityManager.TryGetComponent(message.PulledUid, out ThrownItemComponent? thrownItemComponent))
|
||||
StopThrow(message.PulledUid, thrownItemComponent);
|
||||
if (EntityManager.TryGetComponent(message.Pulled.Owner, out ThrownItemComponent? thrownItemComponent))
|
||||
StopThrow(message.Pulled.Owner, thrownItemComponent);
|
||||
}
|
||||
|
||||
public void StopThrow(EntityUid uid, ThrownItemComponent thrownItemComponent)
|
||||
|
||||
Reference in New Issue
Block a user