1
0
mirror of https://github.com/oliverbooth/VpSharp synced 2024-11-10 02:15:41 +00:00

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

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;
} }