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:
parent
04412c63c6
commit
f86cb05266
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user