Skip to content

Commit 8ffa574

Browse files
committed
make Player.IsBot more accurate
some bots weren't recognized as such before, now we also check the GUID
1 parent 4067ea9 commit 8ffa574

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datatables.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ func (p *Parser) bindNewPlayer(playerEntity *st.Entity) {
193193
pl = common.NewPlayer()
194194
pl.Name = rp.name
195195
pl.SteamID = rp.xuid
196-
pl.IsBot = rp.isFakePlayer
196+
pl.IsBot = rp.isFakePlayer || rp.guid == "BOT"
197197
pl.UserID = rp.userID
198198
}
199199
}

0 commit comments

Comments
 (0)