Skip to content

Commit

Permalink
Removed "Could not load ..."
Browse files Browse the repository at this point in the history
  • Loading branch information
ModX authored and ModX committed Feb 8, 2023
1 parent 82d827b commit c02ff8d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Bot/CrossBot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ public override async Task MainLoop(CancellationToken token)
filename = Path.Combine(Config.FieldLayerNHLDirectory, filename);
if (!File.Exists(filename))
{
LogUtil.LogInfo($"Could not load {filename}.", Config.IP);

//LogUtil.LogInfo($"Could not load {filename}.", Config.IP);
}
else
{
Expand Down Expand Up @@ -172,6 +171,10 @@ public override async Task MainLoop(CancellationToken token)
LogUtil.LogInfo("Reading Town Name. Please wait...", Config.IP);
bytes = await Connection.ReadBytesAsync((uint)OffsetHelper.getTownNameAddress(InventoryOffset), 0x14, token).ConfigureAwait(false);
TownName = Encoding.Unicode.GetString(bytes).TrimEnd('\0');
if (Globals.Bot.Config.FieldLayerName == "name")
{
CLayer = TownName;
}
VisitorList.SetTownName(TownName);
LogUtil.LogInfo("Town name set to " + TownName, Config.IP);

Expand Down

0 comments on commit c02ff8d

Please sign in to comment.