From 6fee9d7913ff13d83f5e7b925da97987fc5dbfaa Mon Sep 17 00:00:00 2001 From: Siga Date: Tue, 17 Mar 2020 16:22:50 +0100 Subject: [PATCH] Fix Wanted on OffDuty 187 --- ReallifeGamemode.Server/Wanted/Autowanted.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/ReallifeGamemode.Server/Wanted/Autowanted.cs b/ReallifeGamemode.Server/Wanted/Autowanted.cs index 420f7cb8..34d06eb3 100644 --- a/ReallifeGamemode.Server/Wanted/Autowanted.cs +++ b/ReallifeGamemode.Server/Wanted/Autowanted.cs @@ -17,6 +17,7 @@ namespace ReallifeGamemode.Server.Wanted return; User cop = copPlayer.GetUser(); + if (!cop.GetData("duty")) return; if (cop.FactionId == 1 || cop.FactionId == 3) { using (var dbContext = new DatabaseContext())