File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ public static bool WeaponIsItem(CEntityInstance entity)
138138
139139 public static void DropSpecialWeapon ( CCSPlayerController player )
140140 {
141- if ( player . IsValid )
141+ if ( player . IsValid && player . PlayerPawn . Value != null && player . PlayerPawn . Value . IsValid )
142142 {
143143 System . Numerics . Vector3 vecPos = ( System . Numerics . Vector3 ) player . PlayerPawn . Value . AbsOrigin with { Z = player . PlayerPawn . Value . AbsOrigin . Z + 30 } ;
144144 foreach ( var weapon in player . PlayerPawn . Value . WeaponServices . MyWeapons )
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public partial class EntWatchSharp : BasePlugin
1818 public override string ModuleName => "EntWatchSharp" ;
1919 public override string ModuleDescription => "Notify players about entity interactions" ;
2020 public override string ModuleAuthor => "DarkerZ [RUS]" ;
21- public override string ModuleVersion => "1.DZ.7.1 " ;
21+ public override string ModuleVersion => "1.DZ.7.2 " ;
2222
2323 public override void OnAllPluginsLoaded ( bool hotReload )
2424 {
Original file line number Diff line number Diff line change 1- 1.DZ.7.1
1+ 1.DZ.7.2
You can’t perform that action at this time.
0 commit comments