Merge pull request #347 from misternebula/my-eyes-the-fixes-do-nothing

Fixes
This commit is contained in:
_nebula 2021-11-18 21:21:34 +00:00 committed by GitHub
commit 35ffe9b058
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -16,7 +16,7 @@ namespace QSB.Player
_markerTarget = new GameObject().transform;
_markerTarget.parent = transform;
_markerTarget.localPosition = Vector3.up * 2;
_markerTarget.localPosition = Vector3.up * 0.25f;
}
public void Init(PlayerInfo player)

View File

@ -62,7 +62,7 @@ namespace QSB.Player
return default;
}
DebugLog.DebugWrite($"Create Player : id<{id}> Stacktrace :\r\n{Environment.StackTrace}", MessageType.Info);
DebugLog.DebugWrite($"Create Player : id<{id}>", MessageType.Info);
player = new PlayerInfo(id);
PlayerList.Add(player);
OnAddPlayer?.Invoke(id);
@ -71,7 +71,7 @@ namespace QSB.Player
public static void RemovePlayer(uint id)
{
DebugLog.DebugWrite($"Remove Player : id<{id}> Stacktrace :\r\n{Environment.StackTrace}", MessageType.Info);
DebugLog.DebugWrite($"Remove Player : id<{id}>", MessageType.Info);
PlayerList.RemoveAll(x => x.PlayerId == id);
}
@ -140,6 +140,8 @@ namespace QSB.Player
public static void ChangePlayerVisibility(uint playerId, bool visible)
{
var player = GetPlayer(playerId);
player.Visible = visible;
if (player.Body == null)
{
DebugLog.ToConsole($"Warning - Player {playerId} has a null player model!", MessageType.Warning);
@ -150,8 +152,6 @@ namespace QSB.Player
{
renderer.enabled = visible;
}
player.Visible = visible;
}
public static PlayerInfo GetClosestPlayerToWorldPoint(Vector3 worldPoint, bool includeLocalPlayer) => includeLocalPlayer