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 |
||
|---|---|---|
| .. | ||
| Animation.cs | ||
| Bed.cs | ||
| BlockInfo.cs | ||
| Bots.cs | ||
| ChangeSlot.cs | ||
| Chunk.cs | ||
| Connect.cs | ||
| Debug.cs | ||
| Dig.cs | ||
| DropItem.cs | ||
| Enchant.cs | ||
| Entitycmd.cs | ||
| ExecIf.cs | ||
| ExecMulti.cs | ||
| Exit.cs | ||
| Health.cs | ||
| Help.cs | ||
| Inventory.cs | ||
| List.cs | ||
| Log.cs | ||
| Look.cs | ||
| Move.cs | ||
| NameItem.cs | ||
| Reco.cs | ||
| Reload.cs | ||
| Respawn.cs | ||
| Script.cs | ||
| Send.cs | ||
| Set.cs | ||
| SetRnd.cs | ||
| Sneak.cs | ||
| Tps.cs | ||
| Upgrade.cs | ||
| Useblock.cs | ||
| UseItem.cs | ||