Merge branch 'disconnect-fixes' of https://github.com/Raicuparta/quantum-space-buddies into disconnect-fixes

This commit is contained in:
Mister_Nebula 2020-08-17 21:29:12 +01:00
commit fe33f266af
2 changed files with 3 additions and 2 deletions

View File

@ -20,7 +20,7 @@ namespace QSB.Events
private void OnClientReceiveMessage(PlayerStateMessage message)
{
if (PlayerRegistry.IsBelongingToLocalPlayer(message.AboutId))
if (message.AboutId == PlayerRegistry.LocalPlayerId)
{
return;
}

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;