From 92215f8cca2dec398bd1e1c2cda0e876c611b4fa Mon Sep 17 00:00:00 2001 From: barelyprofessional <150058423+barelyprofessional@users.noreply.github.com> Date: Fri, 10 Oct 2025 23:56:52 -0500 Subject: [PATCH] Hopefully catch realer and rawer errors --- KfChatDotNetBot/Commands/KasinoGambaCommands.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/KfChatDotNetBot/Commands/KasinoGambaCommands.cs b/KfChatDotNetBot/Commands/KasinoGambaCommands.cs index dc37a67..6540456 100644 --- a/KfChatDotNetBot/Commands/KasinoGambaCommands.cs +++ b/KfChatDotNetBot/Commands/KasinoGambaCommands.cs @@ -419,7 +419,16 @@ public class Planes : ICommand else await Task.Delay(TimeSpan.FromMilliseconds(frameLength / (3 * (frameCounter - 1))), ctx); } else await Task.Delay(TimeSpan.FromMilliseconds(frameLength / (3 * frameCounter)), ctx); //if not the last frame use a fraction of the remaining frame time - planesDisplay = GetGameBoard(fullCounter, planesBoards, plane, carrierCount, noseUp); + + try + { + planesDisplay = GetGameBoard(fullCounter, planesBoards, plane, carrierCount, noseUp); + } + catch (Exception e) + { + logger.Error(e); + throw; + } planesDisplay += $"[br]Multi: {plane.MultiTracker}x"; for (var i = 0; i < 10; i++) {