1
0
mirror of https://github.com/oliverbooth/VpSharp synced 2024-11-09 22:55:42 +00:00

fix: set world settings after avatar details are set

This commit is contained in:
Oliver Booth 2024-01-06 12:19:29 +00:00
parent a3b6f44ea9
commit cc2b7a8964
Signed by: oliverbooth
GPG Key ID: E60B570D1B7557B5

View File

@ -397,12 +397,6 @@ public sealed partial class VirtualParadiseClient : IDisposable
world.Size = new Size(size, size);
if (CurrentWorld is not null)
{
CurrentWorld.Settings = WorldSettingsConverter.FromDictionary(_worldSettings);
_worldSettings.Clear();
}
CurrentAvatar = new VirtualParadiseAvatar(this, -1)
{
Application = _configuration.Application!,
@ -411,6 +405,12 @@ public sealed partial class VirtualParadiseClient : IDisposable
User = CurrentUser!
};
if (CurrentWorld is not null)
{
CurrentWorld.Settings = WorldSettingsConverter.FromDictionary(_worldSettings);
_worldSettings.Clear();
}
if (_configuration.AutoQuery)
{
_ = Task.Run(async () =>