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 |
||
|---|---|---|
| .. | ||
| Handlers | ||
| Message | ||
| ProfileKey | ||
| Session | ||
| DataTypeGenerator.cs | ||
| EntityActionType.cs | ||
| GuidExtensions.cs | ||
| IMinecraftCom.cs | ||
| IMinecraftComHandler.cs | ||
| JwtPayloadDecode.cs | ||
| MicrosoftAuthentication.cs | ||
| MojangAPI.cs | ||
| PlayerInfo.cs | ||
| ProtocolHandler.cs | ||
| ProxiedWebRequest.cs | ||
| ReplayHandler.cs | ||