mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-24 18:39:59 +00:00
cleanup
This commit is contained in:
parent
22316145ea
commit
a5cb2ebac0
@ -5,7 +5,6 @@ using QSB.Utility;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Networking;
|
||||
|
||||
namespace QSB
|
||||
@ -72,7 +71,8 @@ namespace QSB
|
||||
|
||||
public static bool IsBelongingToLocalPlayer(uint id)
|
||||
{
|
||||
return PlayerSyncObjects.Any(x => x != null && x.AttachedNetId == id && x.isLocalPlayer);
|
||||
return id == LocalPlayerId ||
|
||||
PlayerSyncObjects.Any(x => x != null && x.AttachedNetId == id && x.isLocalPlayer);
|
||||
}
|
||||
|
||||
public static uint GetPlayerOfObject(this PlayerSyncObject syncObject)
|
||||
|
Loading…
x
Reference in New Issue
Block a user