mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
AntiCheat fix prevent Block Breaking
This commit is contained in:
parent
9a147b57e5
commit
fde50c1728
6 changed files with 15 additions and 14 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue