mirror of
https://github.com/oliverbooth/VpSharp
synced 2024-11-22 13:48:48 +00:00
fix: delay vp_state_change until CurrentAvatar is updated
This commit is contained in:
parent
cc2b7a8964
commit
25416ae6c1
@ -390,11 +390,6 @@ public sealed partial class VirtualParadiseClient : IDisposable
|
||||
CurrentAvatar.Location = new Location(world);
|
||||
}
|
||||
|
||||
lock (Lock)
|
||||
{
|
||||
_ = vp_state_change(NativeInstanceHandle);
|
||||
}
|
||||
|
||||
world.Size = new Size(size, size);
|
||||
|
||||
CurrentAvatar = new VirtualParadiseAvatar(this, -1)
|
||||
@ -411,6 +406,11 @@ public sealed partial class VirtualParadiseClient : IDisposable
|
||||
_worldSettings.Clear();
|
||||
}
|
||||
|
||||
lock (Lock)
|
||||
{
|
||||
_ = vp_state_change(NativeInstanceHandle);
|
||||
}
|
||||
|
||||
if (_configuration.AutoQuery)
|
||||
{
|
||||
_ = Task.Run(async () =>
|
||||
|
Loading…
Reference in New Issue
Block a user