mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
Fix resolve error when FollowedComponent is not found in StopFollowingEntity (#7276)
This commit is contained in:
parent
0b40f14258
commit
648ffbf673
1 changed files with 2 additions and 6 deletions
|
|
@ -1,12 +1,8 @@
|
|||
using Content.Shared.Database;
|
||||
using Content.Shared.Follower.Components;
|
||||
using Content.Shared.Ghost;
|
||||
using Content.Shared.Movement.EntitySystems;
|
||||
using Content.Shared.Verbs;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Localization;
|
||||
using Content.Shared.Follower.Components;
|
||||
using Robust.Shared.Maths;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Follower;
|
||||
|
||||
|
|
@ -92,7 +88,7 @@ public sealed class FollowerSystem : EntitySystem
|
|||
public void StopFollowingEntity(EntityUid uid, EntityUid target,
|
||||
FollowedComponent? followed=null)
|
||||
{
|
||||
if (!Resolve(target, ref followed))
|
||||
if (!Resolve(target, ref followed, false))
|
||||
return;
|
||||
|
||||
if (!HasComp<FollowerComponent>(uid))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue