mirror of
https://github.com/creazy231/cs2-css-flashlight.git
synced 2026-09-27 20:17:04 +02:00
Add IsValid checks before calling Remove() on flashlight entities to prevent InvalidOperationException when players switch teams. Changes: - Add validity check in ToggleFlashlight() before entity.Remove() - Add validity check in OnPlayerDisconnect() before flashlight.Remove() - Add OnPlayerTeam event handler to clean up flashlight on team switch - Bump version to 0.0.7 This prevents the 'Entity is not valid' crash reported in Issue #2 when players switch teams and their entities become invalid. |
||
|---|---|---|
| .. | ||
| Flashlight.cs | ||
| Flashlight.csproj | ||
| LogHelper.cs | ||