From 470a1d68dab04803e6e909e34f381a9c7d804636 Mon Sep 17 00:00:00 2001 From: Syping Date: Mon, 27 Oct 2025 03:35:12 +0100 Subject: [PATCH] fix json if condition in create command --- Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Program.cs b/Program.cs index 0fb550f..80181cf 100644 --- a/Program.cs +++ b/Program.cs @@ -41,13 +41,13 @@ internal static class Program { } if (photo.Format == PhotoFormat.GTA5) { - photo.Json = json != null ? + photo.Json = json == null ? InitializeJson(PhotoFormat.GTA5, photo, Random.Shared.Next(), DateTimeOffset.FromUnixTimeSeconds(Random.Shared.Next(1356998400, 1388534399))) : UpdateSign(photo, photo.Json); } else { - photo.Json = json != null ? + photo.Json = json == null ? InitializeJson(PhotoFormat.RDR2, photo, Random.Shared.Next(), DateTimeOffset.FromUnixTimeSeconds(Random.Shared.NextInt64(-2240524800, -2208988801))) : UpdateSign(photo, photo.Json);