Minecraft-Console-Client/MinecraftClient/ChatBots
BruceChen ff1c570a78 Handle non-interactive terminal environments gracefully
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
2026-03-19 00:11:13 +08:00
..
Alerts.cs Update Alert.cs (#2496) 2023-05-06 21:55:21 +08:00
AntiAFK.cs Added slab handling for 1.20/.1 2023-06-23 16:25:18 +02:00
AutoAttack.cs Fix 1.19.3 key exchange in offline mode 2023-01-17 20:16:35 +08:00
AutoCraft.cs Bug fix 2022-12-11 17:31:37 +08:00
AutoDig.cs AntiCheat fix prevent Block Breaking 2024-03-05 18:54:29 +05:00
AutoDrop.cs Bug fix 2022-12-11 17:31:37 +08:00
AutoEat.cs Implement command completion suggestions. 2022-12-06 15:50:17 +08:00
AutoFishing.cs Bug fix 2022-12-11 17:31:37 +08:00
AutoRelog.cs Make AutoRelog more reliable 2024-03-07 09:54:40 +08:00
AutoRespond.cs Tooltip support & Bug fix 2022-12-11 13:00:19 +08:00
ChatLog.cs Implement command completion suggestions. 2022-12-06 15:50:17 +08:00
DiscordBridge.cs legacy color support 2022-12-14 14:45:51 +08:00
Farmer.cs AntiCheat fix prevent Block Breaking 2024-03-05 18:54:29 +05:00
FollowPlayer.cs Added slab handling for 1.20/.1 2023-06-23 16:25:18 +02:00
HangmanGame.cs Implement command completion suggestions. 2022-12-06 15:50:17 +08:00
ItemsCollector.cs Added slab handling for 1.20/.1 2023-06-23 16:25:18 +02:00
Mailer.cs [skip ci] Normalize all line endings 2023-09-15 14:44:11 +08:00
Map.cs Handle non-interactive terminal environments gracefully 2026-03-19 00:11:13 +08:00
PlayerListLogger.cs Merge into master 2022-12-06 20:32:46 +08:00
RemoteControl.cs Implement command completion suggestions. 2022-12-06 15:50:17 +08:00
ReplayCapture.cs Bug fix 2022-12-11 17:31:37 +08:00
Script.cs Added documentation examples and covered an edge case 2023-07-16 20:45:24 +02:00
ScriptScheduler.cs Fix script not showing execution results. 2023-01-15 19:59:57 +08:00
TelegramBridge.cs Updated translations 2023-03-26 14:33:06 +02:00
TestBot.cs Implement command completion suggestions. 2022-12-06 15:50:17 +08:00