Minecraft-Console-Client/MinecraftClient/Commands
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
..
Animation.cs [skip ci] Normalize all line endings 2023-09-15 14:44:11 +08:00
Bed.cs Bug fix 2022-12-11 17:31:37 +08:00
BlockInfo.cs Bug fix 2022-12-11 17:31:37 +08:00
Bots.cs Bug fix 2022-12-11 17:31:37 +08:00
ChangeSlot.cs Bug fix 2022-12-11 17:31:37 +08:00
Chunk.cs Handle non-interactive terminal environments gracefully 2026-03-19 00:11:13 +08:00
Connect.cs fixed typo in word heAlper lol 2024-04-16 21:21:08 +03:00
Debug.cs Bug fix 2022-12-11 17:31:37 +08:00
Dig.cs Auxiliary class for Direction, preparation for autodetection of the broken side of the block 2024-03-05 20:30:58 +05:00
DropItem.cs Bug fix 2022-12-11 17:31:37 +08:00
Enchant.cs Bug fix 2022-12-11 17:31:37 +08:00
Entitycmd.cs Partialy fixed interaction with Armor Stand 2023-03-30 21:06:54 +02:00
ExecIf.cs Added access to App Vars inside the Chat Bot API via 3 new methods. Added access to Random class inside the execif command 2023-03-31 18:17:03 +02:00
ExecMulti.cs Bug fix 2022-12-11 16:30:45 +08:00
Exit.cs Bug fix 2022-12-11 17:31:37 +08:00
Health.cs Bug fix 2022-12-11 17:31:37 +08:00
Help.cs Bug fix 2022-12-11 16:30:45 +08:00
Inventory.cs Added ShiftRightClick (#2582) 2023-09-16 19:39:55 +08:00
List.cs Bug fix 2022-12-11 17:31:37 +08:00
Log.cs Bug fix 2022-12-11 16:30:45 +08:00
Look.cs Bug fix 2022-12-11 17:31:37 +08:00
Move.cs Bug fix 2022-12-11 17:31:37 +08:00
NameItem.cs [skip ci] Normalize all line endings 2023-09-15 14:44:11 +08:00
Reco.cs Bug fix 2022-12-11 17:31:37 +08:00
Reload.cs Bug fix 2022-12-11 17:31:37 +08:00
Respawn.cs Bug fix 2022-12-11 17:31:37 +08:00
Script.cs Fix script not showing execution results. 2023-01-15 19:59:57 +08:00
Send.cs Bug fix 2022-12-11 16:30:45 +08:00
Set.cs Bug fix 2022-12-11 17:31:37 +08:00
SetRnd.cs Bug fix 2022-12-11 16:30:45 +08:00
Sneak.cs Added slab handling 1.13-1.19.4 2023-05-16 23:19:31 +02:00
Tps.cs Bug fix 2022-12-11 17:31:37 +08:00
Upgrade.cs Bug fix 2022-12-11 17:31:37 +08:00
Useblock.cs Bug fix 2022-12-11 17:31:37 +08:00
UseItem.cs Bug fix 2022-12-11 17:31:37 +08:00