BruceChen
6e86edc632
feat: Refactor MapColors class to load color palette from JSON resource
2026-04-05 01:17:57 +08:00
copilot-swe-agent[bot]
c7bc25aa17
refactor: convert == null / != null to is null / is not null in 31 files
...
Replace old-style null comparisons with modern C# pattern matching
syntax across Commands, Protocol, Mapping, ChatBots, Physics,
Inventory, Logger, CommandHandler, Scripting, Crypto, and other modules.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-24 00:42:59 +00:00
Anon
28834e7a86
Implemented .net 10 support. Updated all affected libraries and the code. Not testes yet.
2026-03-21 20:07:20 +01:00
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
BruceChen
b4d7d64cdd
Merge some upgrades from AsyncMCC branch
2023-01-14 21:32:19 +08:00
BruceChen
7900108763
Bug fix
2022-12-11 17:31:37 +08:00
BruceChen
94a3c92b36
Bug fix
2022-12-11 16:30:45 +08:00
BruceChen
892999ac98
Merge into master
2022-12-06 20:32:46 +08:00
BruceChen
84cf749344
Implement command completion suggestions.
2022-12-06 15:50:17 +08:00
BruceChen
2331590588
Store the text resources of the setting file separately.
2022-11-30 16:22:48 +08:00
BruceChen
077e3a5e9f
Crowdin localization support ( #2310 )
...
* Switching to use resource files
* Update Crowdin configuration file
* Code cleanup
2022-10-28 11:13:20 +08:00
BruceChen
4925689496
Revert "Added the Web Socket Chat Bot"
2022-10-25 16:23:25 +08:00
Milutinke
46e8818b5b
Fixed a mintor warning in the Map chat bot.
2022-10-24 22:47:11 +02:00
Milutinke
3c6de23d61
Added authorization/security and option to send rendered maps to Telegram via Telegram Bridge chat bot.
2022-10-24 18:39:07 +02:00
Milutinke
cbfc592e27
Fixed Map Chat Bot not sending maps in case the Discord Bridge was not ready and connected.
2022-10-21 21:41:45 +02:00
Milutinke
d8c9e1587b
Added Resizing back to the Map Chat bot and added an option to send rendered images to Discord via Discord Bridge chat bot.
2022-10-21 20:25:48 +02:00
BruceChen
89b7110839
Update Map Bot
2022-10-13 19:34:49 +08:00
BruceChen
c1a04fe5bf
Bug fix
2022-10-07 21:49:05 +08:00
BruceChen
2e18317f3f
Trim & Bug fix
2022-10-07 15:40:38 +08:00
BruceChen
16c1d1fd77
Refactoring Settings.cs
2022-10-05 15:02:30 +08:00
BruceChen
edaa309559
Fix Map bot
2022-10-04 12:00:10 +08:00
BruceChen
53898f3446
Fix xxx.Parse
2022-10-04 11:53:07 +08:00
BruceChen
1d52d1eadd
Fix all warnings & Trim ( #2226 )
...
* Fix AutoFishing crash
* Fix all warnings
* Remove DotNetZip.
* Fix the usage of HttpClient.
2022-10-02 18:31:08 +08:00
Milutinke
cd3adfa14c
Changed the bed command to be able to sleep. Added relative coordinates to /dig command.
2022-09-28 22:43:14 +02:00
Milutinke
387319b353
Updated comments with useful info for future updates.
2022-09-28 11:57:14 +02:00
Milutinke
0a2f777b34
Fixed the color isse thanks to DevBobcorn.
2022-09-28 11:01:15 +02:00
Milutinke
f7263873db
Implemented Map Chat bot which can render maps into images. Useful for solving captchas.
2022-09-28 00:14:43 +02:00