fixed team chat

This commit is contained in:
Ayush Saini 2022-03-20 17:53:47 +05:30 committed by GitHub
parent 9ef18ad19a
commit 1d181ecb5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -109,7 +109,7 @@ def QuickAccess(msg,client_id):
teamid=i.sessionteam.id
for i in _ba.get_foreground_host_session().sessionplayers:
if teamid==i.sessionteam.id and i.inputdevice.client_id!=client_id:
if i.sessionteam and teamid==i.sessionteam.id and i.inputdevice.client_id!=client_id:
_ba.screenmessage(i.getname(True)+":"+msg[1:],clients=[i.inputdevice.client_id],color=(0.3,0.6,0.3))
return None;