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