diff --git a/QSB/DebugLog.cs b/QSB/DebugLog.cs index 9846a1ec..42f61fc0 100644 --- a/QSB/DebugLog.cs +++ b/QSB/DebugLog.cs @@ -66,6 +66,5 @@ namespace QSB Screen(logObjects); HUD(logObjects); } - } } diff --git a/QSB/QSBNetworkManager.cs b/QSB/QSBNetworkManager.cs index a4402fd3..286b6391 100644 --- a/QSB/QSBNetworkManager.cs +++ b/QSB/QSBNetworkManager.cs @@ -124,7 +124,7 @@ namespace QSB public override void OnStopClient() { - DebugLog.Screen("OnStopClient"); + DebugLog.Console("OnStopClient"); Destroy(GetComponent()); Destroy(GetComponent()); Destroy(GetComponent()); @@ -137,7 +137,7 @@ namespace QSB public override void OnServerDisconnect(NetworkConnection conn) { - DebugLog.Screen("OnServerDisconnect"); + DebugLog.Console("OnServerDisconnect"); var playerId = conn.playerControllers[0].gameObject.GetComponent().netId.Value; var objectIds = conn.clientOwnedObjects.Select(x => x.Value).ToArray(); diff --git a/QSB/TimeSync/RespawnOnDeath.cs b/QSB/TimeSync/RespawnOnDeath.cs index 6278a12f..9cdb9b8f 100644 --- a/QSB/TimeSync/RespawnOnDeath.cs +++ b/QSB/TimeSync/RespawnOnDeath.cs @@ -68,6 +68,10 @@ namespace QSB.TimeSync _shipSpawnPoint.transform.position = shipTransform.position; _shipSpawnPoint.transform.rotation = shipTransform.rotation; } + else + { + DebugLog.Console("Error: Ship Transform not found"); + } _deathHandler = new MessageHandler(); _deathHandler.OnServerReceiveMessage += OnServerReceiveMessage; diff --git a/QSB/TransformSync/RigidbodySync.cs b/QSB/TransformSync/RigidbodySync.cs index 62c8aeb8..9744d702 100644 --- a/QSB/TransformSync/RigidbodySync.cs +++ b/QSB/TransformSync/RigidbodySync.cs @@ -68,11 +68,11 @@ namespace QSB.TransformSync } if (collider.GetComponentInParent(_localColliderType) || collider.GetComponent()) { - DebugLog.Screen(gameObject.name, "occupied by", collider.name); + DebugLog.Console(gameObject.name, "occupied by", collider.name); return; } } - DebugLog.Screen("Enable collisions for", gameObject.name); + DebugLog.Console("Enable collisions for", gameObject.name); _collider.isTrigger = false; } @@ -80,7 +80,7 @@ namespace QSB.TransformSync { if (!_collider.isTrigger && (_prevPosition - transform.position).sqrMagnitude > _collisionDisableMovementThreshold) { - DebugLog.Screen("Disable collisions for", gameObject.name); + DebugLog.Console("Disable collisions for", gameObject.name); _collider.isTrigger = true; } _prevPosition = transform.position; diff --git a/QSB/TransformSync/SectorSync.cs b/QSB/TransformSync/SectorSync.cs index f18c222e..821ccd30 100644 --- a/QSB/TransformSync/SectorSync.cs +++ b/QSB/TransformSync/SectorSync.cs @@ -39,7 +39,7 @@ namespace QSB.TransformSync private void Start() { Instance = this; - DebugLog.Screen("Start SectorSync"); + DebugLog.Console("Start SectorSync"); _playerSectors = new Dictionary(); _sectorHandler = new MessageHandler(); @@ -61,7 +61,7 @@ namespace QSB.TransformSync public void SetSector(uint id, Sector.Name sectorName) { - DebugLog.Screen("Gonna set sector"); + DebugLog.Console("Gonna set sector"); _playerSectors[id] = FindSectorTransform(sectorName);