mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Fix prevent AntiCheat Block Breaking (In Scripts)
Fix prevent AntiCheat Block Breaking (In Scripts)
This commit is contained in:
commit
2409de2a2f
7 changed files with 100 additions and 16 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 blockFace direction from 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