improve wt check

This commit is contained in:
hydrant
2021-05-17 00:58:41 +02:00
parent b8b103389d
commit e916e85314

View File

@@ -129,7 +129,7 @@ namespace ReallifeGamemode.Server.WeaponDeal
InventoryManager.RemoveAllItemsfromVehicleInventory(fVeh); InventoryManager.RemoveAllItemsfromVehicleInventory(fVeh);
Faction fac = context.Factions.Where(f => f.Id == user.FactionId).FirstOrDefault(); Faction fac = context.Factions.Where(f => f.Id == user.FactionId).FirstOrDefault();
if (fac.Id == 1 | fac.Id == 3) if (WEAPON_DEAL_STAATSFRAK_IDS.Contains(fac.Id))
{ {
fac.WeaponDealTime = 180; fac.WeaponDealTime = 180;
context.SaveChanges(); context.SaveChanges();