mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
Fix AutoDig mining timing
This commit is contained in:
parent
6331478e30
commit
b74364d465
10 changed files with 1576 additions and 899 deletions
|
|
@ -1154,9 +1154,10 @@ namespace MinecraftClient.Scripting
|
|||
/// <param name="swingArms">Also perform the "arm swing" animation</param>
|
||||
/// <param name="lookAtBlock">Also look at the block before digging</param>
|
||||
/// <param name="duration">Dig duration in seconds. 0 = auto-compute for survival, or instant for creative</param>
|
||||
protected bool DigBlock(Location location, Direction direction, bool swingArms = true, bool lookAtBlock = true, double duration = 0)
|
||||
protected bool DigBlock(Location location, Direction direction, bool swingArms = true, bool lookAtBlock = true,
|
||||
double duration = 0, MiningCalculator.MiningOptions? miningOptions = null)
|
||||
{
|
||||
return Handler.DigBlock(location, direction, swingArms, lookAtBlock, duration);
|
||||
return Handler.DigBlock(location, direction, swingArms, lookAtBlock, duration, miningOptions);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue