mirror of
https://github.com/oliverbooth/VpSharp
synced 2024-11-22 14:48:48 +00:00
fix: fix incorrect interpretation of VP_EVENT_TELEPORT
This commit is contained in:
parent
d7e3ebf582
commit
3047c89fdc
@ -457,14 +457,8 @@ public sealed partial class VirtualParadiseClient
|
||||
: await GetWorldAsync(worldName).ConfigureAwait(false))!;
|
||||
var location = new Location(world, position, rotation);
|
||||
|
||||
CurrentAvatar!.Location = location;
|
||||
VirtualParadiseAvatar avatar = GetAvatar(session)!;
|
||||
avatar.Location = location;
|
||||
|
||||
if (world != CurrentWorld)
|
||||
{
|
||||
_avatars.TryRemove(session, out _);
|
||||
}
|
||||
|
||||
var args = new TeleportedEventArgs(avatar, location);
|
||||
_teleported.OnNext(args);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user