Get rid of UseItemOnHand in using chatbots, replace with UseItemInHand

This commit is contained in:
CarbonNeuron 2020-05-03 10:49:51 -05:00
parent 7207a9ea0e
commit c5a19f4b8b
2 changed files with 3 additions and 3 deletions

View file

@ -83,7 +83,7 @@ namespace MinecraftClient.ChatBots
} }
} }
} }
if (found) UseItemOnHand(); if (found) UseItemInHand();
return found; return found;
} }
} }

View file

@ -95,7 +95,7 @@ namespace MinecraftClient.ChatBots
{ {
LogToConsole(GetTimestamp() + ": Caught a fish!"); LogToConsole(GetTimestamp() + ": Caught a fish!");
// retract fishing rod // retract fishing rod
UseItemOnHand(); UseItemInHand();
if (inventoryEnabled) if (inventoryEnabled)
{ {
if (!hasFishingRod()) if (!hasFishingRod())
@ -110,7 +110,7 @@ namespace MinecraftClient.ChatBots
// retract fishing rod need some time // retract fishing rod need some time
Thread.Sleep(800); Thread.Sleep(800);
// throw again // throw again
UseItemOnHand(); UseItemInHand();
}); });
} }