diff --git a/src/NoBlock.cs b/src/NoBlock.cs index 8fff1e5..26e7459 100644 --- a/src/NoBlock.cs +++ b/src/NoBlock.cs @@ -99,7 +99,7 @@ private HookResult Event_PlayerSpawn(EventPlayerSpawn @event, GameEventInfo info // This is called upon just after the player spawns private void PlayerSpawnNextFrame(CCSPlayerController player, CHandle pawn) { - if (!player.IsValid || !pawn.IsValid) + if (!player.IsValid || !pawn.IsValid || player.Connected != PlayerConnectedState.PlayerConnected) return; // Changes the player's collision to 16, allowing the player to pass through other players while still take damage from bullets and knife attacks pawn.Value.Collision.CollisionGroup = (byte)CollisionGroup.COLLISION_GROUP_DISSOLVING; @@ -116,31 +116,6 @@ private void PlayerSpawnNextFrame(CCSPlayerController player, CHandle