small fix

This commit is contained in:
Max 2022-12-31 15:10:56 -06:00
parent 2ddae74456
commit db52a2c389
3 changed files with 3 additions and 5 deletions

Binary file not shown.

View File

@ -105,9 +105,7 @@ namespace RobloxFiles.Tokens
public void WriteAttribute(RbxAttribute attribute, CFrame value) public void WriteAttribute(RbxAttribute attribute, CFrame value)
{ {
Vector3 pos = value.Position; Vector3 pos = value.Position;
attribute.WriteFloat(pos.X); Vector3Token.WriteVector3(attribute, pos);
attribute.WriteFloat(pos.Y);
attribute.WriteFloat(pos.Z);
int orientId = value.GetOrientId(); int orientId = value.GetOrientId();
attribute.WriteByte((byte)(orientId + 1)); attribute.WriteByte((byte)(orientId + 1));

View File

@ -46,10 +46,10 @@ namespace RobloxFiles
public long SourceAssetId = -1; public long SourceAssetId = -1;
/// <summary>A unique identifier declared for the history of this instance.</summary> /// <summary>A unique identifier declared for the history of this instance.</summary>
public UniqueId HistoryId; public UniqueId HistoryId = new UniqueId(0, 0, 0);
/// <summary>A unique identifier declared for this instance.</summary> /// <summary>A unique identifier declared for this instance.</summary>
public UniqueId UniqueId; public UniqueId UniqueId = new UniqueId(0, 0, 0);
/// <summary>The name of this Instance, if a Name property is defined.</summary> /// <summary>The name of this Instance, if a Name property is defined.</summary>
public override string ToString() => Name; public override string ToString() => Name;