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-06-01 16:53:44 +02:00
committed by null
co-authored by ShadowCommander ShadowCommander
parent d92b6a08cb
commit 7ff91799cc
2 changed files with 26 additions and 11 deletions
+1 -1
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);