Skip to content

Commit 4b60343

Browse files
committed
partial-fix(managed): fix IsFakeClient check
1 parent 000ff96 commit 4b60343

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/managed/API/Scripting/Generic.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public static Player[] FindPlayersByTarget(string target, bool matchbots)
189189
Player? player = GetPlayer(i);
190190
if (player == null) continue;
191191

192-
if (player.IsFakeClient() && !matchbots) continue;
192+
if (!matchbots && player.IsFakeClient()) continue;
193193

194194
if(target == "@all")
195195
{

0 commit comments

Comments
 (0)