(Client) Factor in the held item for digging time

This commit is contained in:
Drew DeVault 2015-10-07 21:13:09 -04:00
parent 3da7d25a3d
commit 7fa1c9699a

View File

@ -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,