Skip to content

Commit

Permalink
Dont reward 0 credits for 0 killed by C4
Browse files Browse the repository at this point in the history
  • Loading branch information
MSWS committed Oct 9, 2024
1 parent 6e7a799 commit 85e736c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/Jailbreak.Rebel/C4Bomb/C4Behavior.cs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ private void detonate(CCSPlayerController player, CC4 bomb) {
}
}

if (API.Gangs != null) {
if (API.Gangs != null && killed > 0) {
var eco = API.Gangs.Services.GetService<IEcoManager>();
if (eco != null) {
var wrapper = new PlayerWrapper(player);
Expand Down

0 comments on commit 85e736c

Please sign in to comment.