1
0
mirror of https://github.com/oliverbooth/VpSharp synced 2024-11-09 23:35:41 +00:00

Code cleanup

This commit is contained in:
Oliver Booth 2022-11-30 19:04:43 +00:00
parent 64eb4190bb
commit 304b043c98
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634

View File

@ -284,11 +284,7 @@ public sealed partial class VirtualParadiseClient
int avatarCount = vp_int(sender, IntegerAttribute.WorldUsers);
var state = (WorldState)vp_int(sender, IntegerAttribute.WorldState);
world = new VirtualParadiseWorld(this, name)
{
AvatarCount = avatarCount,
State = state
};
world = new VirtualParadiseWorld(this, name) {AvatarCount = avatarCount, State = state};
}
if (_worldListChannel is not null)
@ -443,7 +439,9 @@ public sealed partial class VirtualParadiseClient
worldName = vp_string(sender, StringAttribute.TeleportWorld);
}
VirtualParadiseWorld? world = string.IsNullOrWhiteSpace(worldName) ? CurrentWorld : await GetWorldAsync(worldName).ConfigureAwait(false);
VirtualParadiseWorld? world = string.IsNullOrWhiteSpace(worldName)
? CurrentWorld
: await GetWorldAsync(worldName).ConfigureAwait(false);
var location = new Location(world, position, rotation);
VirtualParadiseAvatar? avatar = GetAvatar(session);