mirror of
https://github.com/oliverbooth/VpSharp
synced 2024-11-12 22:35:42 +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);
|
||||
|
||||
VirtualParadiseAvatar avatar = GetAvatar(session)!;
|
||||
avatar.Location = location;
|
||||
|
||||
if (world != CurrentWorld)
|
||||
{
|
||||
_avatars.TryRemove(session, out _);
|
||||
}
|
||||
|
||||
CurrentAvatar!.Location = location;
|
||||
VirtualParadiseAvatar avatar = GetAvatar(session)!;
|
||||
var args = new TeleportedEventArgs(avatar, location);
|
||||
_teleported.OnNext(args);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user