1
0
mirror of https://github.com/oliverbooth/VpSharp synced 2024-11-22 23:58:47 +00:00

Compare commits

...

2 Commits

3 changed files with 5 additions and 3 deletions

View File

@ -216,7 +216,7 @@ public readonly partial struct Coordinates : IEquatable<Coordinates>, IFormattab
/// <returns>A <see cref="string" /> representation of these coordinates.</returns>
public string ToString(string? format, IFormatProvider? formatProvider = null)
{
format ??= "0";
format ??= "F";
return Serializer.Serialize(this, format, formatProvider ?? CultureInfo.InvariantCulture);
}
}

View File

@ -443,7 +443,9 @@ public sealed class VirtualParadiseAvatar : IEquatable<VirtualParadiseAvatar>
}
}
Location = new Location(new VirtualParadiseWorld(_client, world), position, rotation);
VirtualParadiseWorld? updatedWorld = isNewWorld ? await _client.GetWorldAsync(world) : Location.World;
updatedWorld ??= new VirtualParadiseWorld(_client, world);
Location = new Location(updatedWorld, position, rotation);
// ReSharper restore InconsistentlySynchronizedField
}

View File

@ -207,7 +207,7 @@ public readonly struct Rotation : IEquatable<Rotation>, IFormattable
/// <returns>A <see cref="string" /> representation of these coordinates.</returns>
public string ToString(string? format, IFormatProvider? formatProvider = null)
{
format ??= "{0}";
format ??= "F";
string separator = NumberFormatInfo.GetInstance(formatProvider).NumberGroupSeparator;
using var builder = ZString.CreateUtf8StringBuilder();