Skip to content

Commit

Permalink
修复Region被识别为System.Drawing的类
Browse files Browse the repository at this point in the history
  • Loading branch information
ACaiCat committed Feb 1, 2025
1 parent 62fa70a commit 521ea9f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 20 deletions.
2 changes: 1 addition & 1 deletion CaiBotMod/CaiBotMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ await WebSocket.ConnectAsync(new Uri("ws://api.terraria.ink:22334/bot/" + Config
Console.WriteLine($"[CaiAPI]收到BOT数据包: {receivedData}");
}

MessageHandle.HandleMessageAsync(receivedData);
_ = MessageHandle.HandleMessageAsync(receivedData);
}
}
catch (Exception ex)
Expand Down
3 changes: 1 addition & 2 deletions CaiBotMod/Common/BossCheckList.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Newtonsoft.Json;
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using Terraria.GameContent.ItemDropRules;
Expand Down
3 changes: 1 addition & 2 deletions CaiBotMod/Common/CaiBotCommands.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using Terraria.ModLoader;
using Terraria.ModLoader;

namespace CaiBotMod.Common;

Expand Down
4 changes: 1 addition & 3 deletions CaiBotMod/Common/MessageHandler.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
using Ionic.Zlib;
using Newtonsoft.Json;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.WebSockets;
using System.Runtime.InteropServices;
Expand Down
13 changes: 1 addition & 12 deletions CaiBotMod/Common/TSPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ You should have received a copy of the GNU General Public License
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text.RegularExpressions;
using System.Threading;
Expand Down Expand Up @@ -109,17 +108,7 @@ public class TSPlayer
public bool Confused = false;

public string Country = "??";

/// <summary>
/// Keeps track of recently created projectiles by this player. TShock.cs OnSecondUpdate() removes from this in an
/// async task.
/// Projectiles older than 5 seconds are purged from this collection as they are no longer "recent."
/// </summary>
/// <summary>
/// The current region this player is in, or null if none.
/// </summary>
public Region CurrentRegion = null!;


/// <summary>
/// Contains data stored by plugins
/// </summary>
Expand Down

0 comments on commit 521ea9f

Please sign in to comment.