Skip to content

Commit

Permalink
Fixed potential server crash
Browse files Browse the repository at this point in the history
  • Loading branch information
B3none committed Jan 14, 2024
1 parent a60c073 commit 67ef9a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions Modules/Helpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,7 @@ public static void PlantTickingBomb(CCSPlayerController? player, Bombsite bombsi
plantedC4.AbsOrigin.Z = playerPawn.AbsOrigin.Z;
plantedC4.HasExploded = false;

plantedC4.OwnerEntity.Raw = playerPawn.EntityHandle.Raw;

plantedC4.BombSite = 0;
plantedC4.BombSite = (int)bombsite;
plantedC4.BombTicking = true;
plantedC4.CannotBeDefused = false;

Expand Down
2 changes: 1 addition & 1 deletion RetakesPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace RetakesPlugin;
[MinimumApiVersion(131)]
public class RetakesPlugin : BasePlugin
{
private const string Version = "1.3.1";
private const string Version = "1.3.2";

#region Plugin info
public override string ModuleName => "Retakes Plugin";
Expand Down

0 comments on commit 67ef9a4

Please sign in to comment.