perf: use pre-evaluated new world flag

This commit is contained in:
Oliver Booth 2024-02-17 15:14:03 +00:00
parent 04412c63c6
commit f86cb05266
Signed by: oliverbooth
GPG Key ID: E60B570D1B7557B5
1 changed files with 1 additions and 1 deletions

View File

@ -390,7 +390,7 @@ public sealed class VirtualParadiseAvatar : IEquatable<VirtualParadiseAvatar>
bool isSelf = this == _client.CurrentAvatar; bool isSelf = this == _client.CurrentAvatar;
bool isNewWorld = world != Location.World.Name; bool isNewWorld = world != Location.World.Name;
if (world == Location.World.Name) if (!isNewWorld)
{ {
world = string.Empty; world = string.Empty;
} }