diff --git a/QSB/PlayerRegistry.cs b/QSB/PlayerRegistry.cs index a4fe4e01..0f431b4a 100644 --- a/QSB/PlayerRegistry.cs +++ b/QSB/PlayerRegistry.cs @@ -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)