From f0e5824a6c4e7e67b4b4be6e7db424cb79a9b6a0 Mon Sep 17 00:00:00 2001
From: MSWS <imodmaker@gmail.com>
Date: Wed, 18 Sep 2024 20:24:01 -0700
Subject: [PATCH] Dont enable LR if already enabled

---
 mod/Jailbreak.LastRequest/LastRequestManager.cs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mod/Jailbreak.LastRequest/LastRequestManager.cs b/mod/Jailbreak.LastRequest/LastRequestManager.cs
index 29971e58..e30e0eec 100644
--- a/mod/Jailbreak.LastRequest/LastRequestManager.cs
+++ b/mod/Jailbreak.LastRequest/LastRequestManager.cs
@@ -253,6 +253,7 @@ public HookResult OnPlayerDisconnect(EventPlayerDisconnect @event,
 
   private void checkLR() {
     Server.RunOnTick(Server.TickCount + 32, () => {
+      if (IsLREnabled) return;
       if (Utilities.GetPlayers().All(p => p.Team != CsTeam.CounterTerrorist))
         return;
       if (countAlivePrisoners() > CV_PRISONER_TO_LR.Value) return;