mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
When MCC runs in non-interactive terminals (e.g. CI runners, IDE embedded shells, piped input), several Console APIs throw exceptions because there is no real console attached. Changes: - Program.cs: Wrap Console.KeyAvailable / Console.ReadKey in HandleFailure() with try-catch so MCC does not crash on startup failure in headless environments. - Chunk.cs: Wrap Console.BufferWidth / BufferHeight in try-catch with fallback values (120x50) to prevent exceptions when rendering chunk maps without a console buffer. - Map.cs: Same treatment for the map rendering path - use safe fallback values when Console.BufferWidth/Height are unavailable. - ReplayHandler.cs: Replace Array.Reverse() (returns void in newer .NET) with .AsEnumerable().Reverse() to fix compilation with .NET 10 SDK where the void return breaks the fluent chain. Made-with: Cursor |
||
|---|---|---|
| .. | ||
| Alerts.cs | ||
| AntiAFK.cs | ||
| AutoAttack.cs | ||
| AutoCraft.cs | ||
| AutoDig.cs | ||
| AutoDrop.cs | ||
| AutoEat.cs | ||
| AutoFishing.cs | ||
| AutoRelog.cs | ||
| AutoRespond.cs | ||
| ChatLog.cs | ||
| DiscordBridge.cs | ||
| Farmer.cs | ||
| FollowPlayer.cs | ||
| HangmanGame.cs | ||
| ItemsCollector.cs | ||
| Mailer.cs | ||
| Map.cs | ||
| PlayerListLogger.cs | ||
| RemoteControl.cs | ||
| ReplayCapture.cs | ||
| Script.cs | ||
| ScriptScheduler.cs | ||
| TelegramBridge.cs | ||
| TestBot.cs | ||