mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-13 09:18:05 -04:00
Fix overcompensating for dig time (wrong since slow breaking... oh welp).
This commit is contained in:
parent
391048ae99
commit
db280211a9
@ -105,10 +105,7 @@ trait Agent extends traits.WorldControl with traits.InventoryControl with traits
|
|||||||
val breakTime = player.clickBlock(x, y, z, side)
|
val breakTime = player.clickBlock(x, y, z, side)
|
||||||
val broke = breakTime > 0
|
val broke = breakTime > 0
|
||||||
if (broke) {
|
if (broke) {
|
||||||
// Subtract one tick because we take one to trigger the action - a bit
|
triggerDelay(breakTime)
|
||||||
// more than one tick avoid floating point inaccuracy incurring another
|
|
||||||
// tick of delay.
|
|
||||||
triggerDelay(breakTime - 0.055)
|
|
||||||
}
|
}
|
||||||
(broke, "block")
|
(broke, "block")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user