mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-25 03:40:43 +00:00
cleanup
This commit is contained in:
parent
22316145ea
commit
a5cb2ebac0
@ -5,7 +5,6 @@ using QSB.Utility;
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using UnityEngine;
|
|
||||||
using UnityEngine.Networking;
|
using UnityEngine.Networking;
|
||||||
|
|
||||||
namespace QSB
|
namespace QSB
|
||||||
@ -72,7 +71,8 @@ namespace QSB
|
|||||||
|
|
||||||
public static bool IsBelongingToLocalPlayer(uint id)
|
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)
|
public static uint GetPlayerOfObject(this PlayerSyncObject syncObject)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user