AntiCheat fix prevent Block Breaking

This commit is contained in:
Roman Danilov 2024-03-05 18:54:29 +05:00
parent 9a147b57e5
commit fde50c1728
6 changed files with 15 additions and 14 deletions

View file

@ -831,7 +831,7 @@ namespace MinecraftClient.ChatBots
// Yoinked from Daenges's Sugarcane Farmer
private bool WaitForDigBlock(Location block, int digTimeout = 1000)
{
if (!DigBlock(block.ToFloor())) return false;
if (!DigBlock(block.ToFloor(), Direction.Down)) return false;
short i = 0; // Maximum wait time of 10 sec.
while (GetWorld().GetBlock(block).Type != Material.Air && i <= digTimeout)
{