mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +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
|
|
@ -651,9 +651,10 @@ public class WebSocketBot : ChatBot
|
|||
|
||||
var result = cmd.Parameters.Length switch
|
||||
{
|
||||
3 => DigBlock(location),
|
||||
4 => DigBlock(location, (bool)cmd.Parameters[3]),
|
||||
5 => DigBlock(location, (bool)cmd.Parameters[3], (bool)cmd.Parameters[4]),
|
||||
// TODO Get Direction from the arguments
|
||||
3 => DigBlock(location, Direction.Down),
|
||||
4 => DigBlock(location, Direction.Down, (bool)cmd.Parameters[3]),
|
||||
5 => DigBlock(location, Direction.Down, (bool)cmd.Parameters[3], (bool)cmd.Parameters[4]),
|
||||
_ => false
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue