Skip to content

Commit

Permalink
Fixed a log error
Browse files Browse the repository at this point in the history
  • Loading branch information
Franc1sco committed Apr 1, 2024
1 parent ec23615 commit b9ad093
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Parachute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class Parachute : BasePlugin, IPluginConfig<ConfigGen>
{
public override string ModuleName => "CS2 Parachute";
public override string ModuleAuthor => "Franc1sco Franug";
public override string ModuleVersion => "1.5";
public override string ModuleVersion => "1.5.1";


public ConfigGen Config { get; set; } = null!;
Expand Down Expand Up @@ -120,7 +120,7 @@ public override void Load(bool hotReload)
&& (Config.AccessFlag == "" || AdminManager.PlayerHasPermissions(player, Config.AccessFlag)))
{
var buttons = player.Buttons;
if ((buttons & PlayerButtons.Use) != 0 && player.PlayerPawn?.Value?.OnGroundLastTick == false)
if ((buttons & PlayerButtons.Use) != 0 && !player.PlayerPawn.Value!.OnGroundLastTick)
{
StartPara(player);

Expand Down

0 comments on commit b9ad093

Please sign in to comment.