Possible fix for RefuseCollector on Vehicle Enter

This commit is contained in:
2021-04-27 00:54:22 +02:00
parent fa0be13bb2
commit 96e12ffd7a

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
@@ -204,7 +204,7 @@ namespace ReallifeGamemode.Server.Managers
if (job != null && job.GetUsersInJob().Contains(player))
{
if(job.CheckVehicle(player, veh) && seat == 0)
if (job.CheckVehicle(player, veh) && seat == 0)
{
if (!playerTimersJobVehicleRespawn.ContainsKey(player))
return;
@@ -212,7 +212,7 @@ namespace ReallifeGamemode.Server.Managers
playerTimersJobVehicleRespawn[player].Stop();
playerTimersJobVehicleRespawn.Remove(player);
}
else
else if (job != GetJob<RefuseCollectorJob>())
{
player.StopAnimation();
player.WarpOutOfVehicle();