Merge pull request #184 from Raicuparta/alek/wuuut

wut
This commit is contained in:
Mister_Nebula 2020-08-17 21:24:26 +01:00 committed by GitHub
commit d0b80fea7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,8 @@ namespace QSB.Events
private void OnClientReceive(T message)
{
if (PlayerRegistry.IsBelongingToLocalPlayer(message.FromId))
if (message.FromId == PlayerRegistry.LocalPlayerId ||
PlayerRegistry.IsBelongingToLocalPlayer(message.AboutId))
{
OnReceiveLocal(message);
return;