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

View File

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