Skip to content

Commit 62eec0f

Browse files
committed
Update 1.DZ.7.2
A small fix for kicking a player when connecting(VAC banned/cooldown)
1 parent bcef288 commit 62eec0f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

EntWatchSharp/EW.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

EntWatchSharp/EntWatchSharp.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
{

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.DZ.7.1
1+
1.DZ.7.2

0 commit comments

Comments
 (0)