mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-13 01:10:19 -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 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")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user