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

@ -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
};