Fix non-ghosts and admins counting toward most followed (#28120)

* Fixed non-ghosts and admins counting toward most followed

* Redone to better leverage EntityQueryEnumerator

* Remember to test your code before you commit it, kids

* Review revisions

* Update Content.Shared/Follower/FollowerSystem.cs

Co-authored-by: ShadowCommander <shadowjjt@gmail.com>

* Update Content.Shared/Follower/FollowerSystem.cs

Co-authored-by: ShadowCommander <shadowjjt@gmail.com>

* Update Content.Shared/Follower/FollowerSystem.cs

* Clean up

---------

Co-authored-by: ShadowCommander <shadowjjt@gmail.com>
Co-authored-by: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com>
This commit is contained in:
Tayrtahn
2024-05-20 10:12:05 -04:00
committed by GitHub
parent fa06783986
commit 8995810ade
2 changed files with 26 additions and 11 deletions

View File

@@ -306,7 +306,7 @@ namespace Content.Server.Ghost
return;
}
if (_followerSystem.GetMostFollowed() is not {} target)
if (_followerSystem.GetMostGhostFollowed() is not {} target)
return;
WarpTo(uid, target);