(Client) Factor in the held item for digging time
This commit is contained in:
parent
3da7d25a3d
commit
7fa1c9699a
@ -249,7 +249,8 @@ namespace TrueCraft.Client.Modules
|
||||
Game.StartDigging = DateTime.UtcNow;
|
||||
short damage;
|
||||
Game.EndDigging = Game.StartDigging.AddMilliseconds(
|
||||
BlockProvider.GetHarvestTime(block, 0, out damage));
|
||||
BlockProvider.GetHarvestTime(block,
|
||||
Game.Client.Inventory.Hotbar[Game.Client.HotbarSelection].ID, out damage));
|
||||
Game.Client.QueuePacket(new PlayerDiggingPacket(
|
||||
PlayerDiggingPacket.Action.StartDigging,
|
||||
Game.TargetBlock.X, (sbyte)Game.TargetBlock.Y, Game.TargetBlock.Z,
|
||||
|
Loading…
x
Reference in New Issue
Block a user