Fix overcompensating for dig time (wrong since slow breaking... oh welp).

This commit is contained in:
Florian Nücke 2015-07-26 17:04:00 +02:00
parent 391048ae99
commit db280211a9

View File

@ -105,10 +105,7 @@ trait Agent extends traits.WorldControl with traits.InventoryControl with traits
val breakTime = player.clickBlock(x, y, z, side)
val broke = breakTime > 0
if (broke) {
// Subtract one tick because we take one to trigger the action - a bit
// more than one tick avoid floating point inaccuracy incurring another
// tick of delay.
triggerDelay(breakTime - 0.055)
triggerDelay(breakTime)
}
(broke, "block")
}