Merge pull request #457 from misternebula/bruh

bruh
This commit is contained in:
_nebula 2022-01-16 11:24:26 +00:00 committed by GitHub
commit 98d2e0382b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,7 @@ namespace QSB.Syncs
public T AttachedObject { get; set; }
public Transform ReferenceTransform { get; set; }
public string LogName => (IsPlayerObject ? $"{Player.PlayerId}." : string.Empty) + $"{NetId.Value}:{GetType().Name}";
public string LogName => (IsPlayerObject ? $"{Player?.PlayerId}." : string.Empty) + $"{NetId.Value}:{GetType().Name}";
protected virtual float DistanceLeeway { get; } = 5f;
private float _previousDistance;
protected const float SmoothTime = 0.1f;