diff --git a/src/CaiBot/MapGenerator.cs b/src/CaiBot/MapGenerator.cs index d33e4bb77..907ff471f 100644 --- a/src/CaiBot/MapGenerator.cs +++ b/src/CaiBot/MapGenerator.cs @@ -1,5 +1,3 @@ -// 来自:https://github.com/UnrealMultiple/MorMor/blob/master/MorMor/TShock/Map/ - using SixLabors.ImageSharp; using SixLabors.ImageSharp.PixelFormats; using System.IO.Compression; @@ -7,7 +5,6 @@ using Terraria.ID; using Terraria.IO; using Terraria.Map; -using Color = Microsoft.Xna.Framework.Color; using Image = SixLabors.ImageSharp.Image; namespace CaiBot; @@ -16,9 +13,9 @@ public static class MapGenerator { public static Image Create() { - Image image = new(Main.tile.Width, Main.tile.Height); + Image image = new(Main.maxTilesX, Main.maxTilesY); MapHelper.Initialize(); - Main.Map = new(Main.tile.Width, Main.tile.Height); + Main.Map = new(Main.maxTilesX, Main.maxTilesY); for (var x = 0; x < Main.maxTilesX; x++) { for (var y = 0; y < Main.maxTilesY; y++) diff --git a/src/CaiBot/Plugin.cs b/src/CaiBot/Plugin.cs index 0b16f3639..b90e21ded 100644 --- a/src/CaiBot/Plugin.cs +++ b/src/CaiBot/Plugin.cs @@ -19,7 +19,7 @@ public class Plugin : TerrariaPlugin public override string Author => "Cai,羽学,西江"; public override string Description => "CaiBot机器人的适配插件"; public override string Name => "CaiBotPlugin"; - public static readonly Version VersionNum = new(2024, 10, 19 , 1); //日期+版本号(0,1,2...) + public static readonly Version VersionNum = new(2024, 10, 20 , 1); //日期+版本号(0,1,2...) public override Version Version => VersionNum; public Plugin(Main game) : base(game) diff --git a/src/CaiBot/README.md b/src/CaiBot/README.md index 9966ffa6c..89e3d5b03 100644 --- a/src/CaiBot/README.md +++ b/src/CaiBot/README.md @@ -13,6 +13,7 @@ ## 更新日志 ``` +v2024.10.20.1 修复`查看地图`命令小、中世界的图片尺寸偏大的问题 v2024.10.19.1 重写白名单登录,修复卡死WebSocket的问题 v2024.10.12.3 修复卡号Bug v2024.10.12.1 修改白名单查询机制