Fix being able to pull multiple entities at once (#2398)
This commit is contained in:
@@ -41,6 +41,12 @@ namespace Content.Shared.GameObjects.EntitySystems
|
||||
|
||||
private void OnPullStarted(PullStartedMessage message)
|
||||
{
|
||||
if (_pullers.TryGetValue(message.Puller.Owner, out var pulled) &&
|
||||
pulled.TryGetComponent(out SharedPullableComponent? pulledComponent))
|
||||
{
|
||||
pulledComponent.TryStopPull();
|
||||
}
|
||||
|
||||
SetPuller(message.Puller.Owner, message.Pulled.Owner);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user