fix: clarify autodig switch log formatting

Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/e83f9c2a-a85c-4763-821b-c5b4a0db75a6

Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-03-31 08:50:43 +00:00
parent 1a86655dfb
commit 737a94475a
3 changed files with 4 additions and 4 deletions

View file

@ -294,7 +294,7 @@ namespace MinecraftClient.ChatBots
int handSlot = 36 + GetCurrentSlot();
container.Items.TryGetValue(handSlot, out Item? currentTool);
if (IsRecommendedTool(currentTool, recommendedTools) && currentTool is not null && HasEnoughDurability(currentTool))
if (currentTool is not null && IsRecommendedTool(currentTool, recommendedTools) && HasEnoughDurability(currentTool))
return true;
foreach (ItemType recommendedTool in recommendedTools)
@ -307,7 +307,7 @@ namespace MinecraftClient.ChatBots
if (!SwapToolIntoHand(slot, handSlot))
return false;
LogToConsole(GetTimestamp() + ": " + string.Format(Translations.bot_autodig_switch, slot, item.GetTypeString()));
LogToConsole(GetTimestamp() + ": " + string.Format(Translations.bot_autodig_switch, item.GetTypeString(), slot));
if (Config.Drop_Low_Durability_Tools && IsBelowDurabilityLimit(currentTool) &&
WindowAction(0, slot, WindowActionType.DropItemStack))

View file

@ -483,7 +483,7 @@ namespace MinecraftClient {
}
/// <summary>
/// Looks up a localized string similar to Switch to {1} from slot {0}..
/// Looks up a localized string similar to Switch to {0} from slot {1}..
/// </summary>
internal static string bot_autodig_switch {
get {

View file

@ -256,7 +256,7 @@
<value>Auto-digging has been stopped.</value>
</data>
<data name="bot.autodig.switch" xml:space="preserve">
<value>Switch to {1} from slot {0}.</value>
<value>Switch to {0} from slot {1}.</value>
</data>
<data name="bot.autoDrop.added" xml:space="preserve">
<value>Added item {0}</value>