schulung von drant

This commit is contained in:
2020-08-06 20:02:35 +02:00
parent 88aac39993
commit fd99e6b916
2 changed files with 6 additions and 6 deletions

View File

@@ -54,13 +54,15 @@ namespace ReallifeGamemode.Server.Events
} }
TaxiDriverJob taxiJob = JobManager.GetJob<TaxiDriverJob>(); TaxiDriverJob taxiJob = JobManager.GetJob<TaxiDriverJob>();
TaxiContract taxiContract = taxiJob.TaxiContracts.Where(t => t.Name == player.Name).First(); TaxiContract taxiContract = taxiJob.TaxiContracts.Where(t => t.Name == player.Name).FirstOrDefault();
if (taxiJob.TaxiContracts.Contains(taxiContract)) if (taxiContract != null)
{ {
taxiJob.TaxiContracts.Remove(taxiContract); if (taxiJob.TaxiContracts.Contains(taxiContract))
{
taxiJob.TaxiContracts.Remove(taxiContract);
}
} }
var listReports = Report.Report.listReports; var listReports = Report.Report.listReports;
ReportManage temp; ReportManage temp;
for (int a = 0; a < listReports.Count; a++) for (int a = 0; a < listReports.Count; a++)

View File

@@ -85,8 +85,6 @@ namespace ReallifeGamemode.Server.Factions.Medic
[RemoteEvent("updateMedicTask")] [RemoteEvent("updateMedicTask")]
public void UpdateMedicTasks(Player player, int type, int index, string medicName) public void UpdateMedicTasks(Player player, int type, int index, string medicName)
{ {
switch (type) switch (type)
{ {
case 0: case 0: