From 432f55460db146a18444a8feb4db714dd0e4476a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D0=BE=D0=BC=D0=B0=20=D0=94=D0=B0=D0=BD=D0=B8=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2?= <35975332+Nekiplay@users.noreply.github.com> Date: Thu, 30 Jul 2020 00:52:38 +0500 Subject: [PATCH] Fix TreeFarmer (#1157) --- MinecraftClient/config/ChatBots/TreeFarmer.cs | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/MinecraftClient/config/ChatBots/TreeFarmer.cs b/MinecraftClient/config/ChatBots/TreeFarmer.cs index 0520bd74..54b1305b 100644 --- a/MinecraftClient/config/ChatBots/TreeFarmer.cs +++ b/MinecraftClient/config/ChatBots/TreeFarmer.cs @@ -26,25 +26,20 @@ public class TreeFarmer : ChatBot case Material.OakLog: // Tree has grown, dig 4 blocks ChangeSlot(0); - DigBlock(0, sapling, 1); + DigBlock(sapling); Thread.Sleep(100); - DigBlock(2, sapling, 1); // 1 - DigBlock(0, new Location(sapling.X, sapling.Y + 1, sapling.Z), 1); + DigBlock(new Location(sapling.X, sapling.Y + 1, sapling.Z)); Thread.Sleep(100); - DigBlock(2, new Location(sapling.X, sapling.Y + 1, sapling.Z), 1); // 2 - DigBlock(0, new Location(sapling.X, sapling.Y + 2, sapling.Z), 1); + DigBlock(new Location(sapling.X, sapling.Y + 2, sapling.Z)); Thread.Sleep(100); - DigBlock(2, new Location(sapling.X, sapling.Y + 2, sapling.Z), 1); // 3 - DigBlock(0, new Location(sapling.X, sapling.Y + 3, sapling.Z), 1); + DigBlock(new Location(sapling.X, sapling.Y + 3, sapling.Z)); Thread.Sleep(100); - DigBlock(2, new Location(sapling.X, sapling.Y + 3, sapling.Z), 1); // 4 - DigBlock(0, new Location(sapling.X, sapling.Y + 4, sapling.Z), 1); + DigBlock(new Location(sapling.X, sapling.Y + 4, sapling.Z); Thread.Sleep(100); - DigBlock(2, new Location(sapling.X, sapling.Y + 4, sapling.Z), 1); break; case Material.Air: // No tree, plant something @@ -61,4 +56,4 @@ public class TreeFarmer : ChatBot { } -} \ No newline at end of file +}