mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-09 03:40:46 +00:00
Merge branch 'disconnect-fixes' of https://github.com/Raicuparta/quantum-space-buddies into disconnect-fixes
This commit is contained in:
commit
fe33f266af
@ -20,7 +20,7 @@ namespace QSB.Events
|
||||
|
||||
private void OnClientReceiveMessage(PlayerStateMessage message)
|
||||
{
|
||||
if (PlayerRegistry.IsBelongingToLocalPlayer(message.AboutId))
|
||||
if (message.AboutId == PlayerRegistry.LocalPlayerId)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user