From f86cb0526646dcb009649cf922e6e966bad55760 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Sat, 17 Feb 2024 15:14:03 +0000 Subject: [PATCH] perf: use pre-evaluated new world flag --- VpSharp/src/Entities/VirtualParadiseAvatar.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VpSharp/src/Entities/VirtualParadiseAvatar.cs b/VpSharp/src/Entities/VirtualParadiseAvatar.cs index 5100001..bd9dd3f 100644 --- a/VpSharp/src/Entities/VirtualParadiseAvatar.cs +++ b/VpSharp/src/Entities/VirtualParadiseAvatar.cs @@ -390,7 +390,7 @@ public sealed class VirtualParadiseAvatar : IEquatable bool isSelf = this == _client.CurrentAvatar; bool isNewWorld = world != Location.World.Name; - if (world == Location.World.Name) + if (!isNewWorld) { world = string.Empty; }