This commit is contained in:
Siga
2020-04-04 19:44:01 +02:00
parent 46fac4d558
commit 6f8de7553e
2 changed files with 9 additions and 3 deletions

View File

@@ -103,11 +103,10 @@ namespace ReallifeGamemode.Server.Job
public static void UpdateFare()
{
Console.WriteLine($"{GetPlayerInJob().Count}");
foreach (var player in GetPlayerInJob())
{
User u = player.GetUser();
if (u.JobId != 1) return;
if (u.JobId != 1) return;
Console.WriteLine(player.Name);
if (!player.HasData("hasPassager")) { player.SetData<bool>("hasPassager", false); continue; }
int playerId = player.GetUser().Id;