From 2e4812752539e7962d7ac7239d2b1aea8e63f9d3 Mon Sep 17 00:00:00 2001 From: Yamato Date: Thu, 4 Apr 2024 15:33:32 +0200 Subject: [PATCH] FixStupid --- Exiled.Events/Patches/Events/Player/Spawning.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Exiled.Events/Patches/Events/Player/Spawning.cs b/Exiled.Events/Patches/Events/Player/Spawning.cs index 4473ac91c7..527959002b 100644 --- a/Exiled.Events/Patches/Events/Player/Spawning.cs +++ b/Exiled.Events/Patches/Events/Player/Spawning.cs @@ -37,7 +37,7 @@ private static MethodInfo TargetMethod() private static bool Prefix(ReferenceHub hub, PlayerRoleBase prevRole, PlayerRoleBase newRole) { - if (newRole.ServerSpawnReason == RoleChangeReason.Destroyed || Player.TryGet(hub, out Player player)) + if (newRole.ServerSpawnReason == RoleChangeReason.Destroyed || !Player.TryGet(hub, out Player player)) return true; Vector3 oldPosition = hub.transform.position;