cs2-css-flashlight/Flashlight
Vesper 57e502fbf6 fix: Entity validity check before Remove() - fixes #2
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.
2026-02-28 22:21:00 +00:00
..
Flashlight.cs fix: Entity validity check before Remove() - fixes #2 2026-02-28 22:21:00 +00:00
Flashlight.csproj feat: Update to latest CS2/CSS API and .NET 8.0 2026-02-28 22:16:15 +00:00
LogHelper.cs 🚀 Initial commit 2023-12-13 09:46:00 +01:00