mirror of https://github.com/oliverbooth/VpSharp
perf: use pre-evaluated new world flag
This commit is contained in:
parent
04412c63c6
commit
f86cb05266
|
@ -390,7 +390,7 @@ public sealed class VirtualParadiseAvatar : IEquatable<VirtualParadiseAvatar>
|
|||
bool isSelf = this == _client.CurrentAvatar;
|
||||
bool isNewWorld = world != Location.World.Name;
|
||||
|
||||
if (world == Location.World.Name)
|
||||
if (!isNewWorld)
|
||||
{
|
||||
world = string.Empty;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue