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
1 changed files with 6 additions and 6 deletions

View File

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