You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
macOS, Linux, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
Minecraft Version
1.20.X
Describe the bug
If a subroutine waits for n ticks on the first execution, it will only wait until the next tick.
someSequence {
// This code would run immediately
waitTicks(5)
// This code runs after only one tick (<- BUG)
waitTicks(5)
// This code runs after five ticks (Correct)
}
Steps to reproduce
This unit test found the bug:
@Test
funtestWaitTicksBug() {
var nTimesRan =0val seq =CommonTestSequence(sequenceManager) {
nTimesRan +=1
waitTicks(5)
nTimesRan +=1
}
for (i in0 until 5) {
assertEquals(1, nTimesRan)
seq.onTick()
}
assertEquals(2, nTimesRan)
}
Client Log
-
Screenshots
No response
The text was updated successfully, but these errors were encountered:
superblaubeere27
changed the title
[BUG] Sequence break when waiting for ticks on the first execution
[BUG] Sequences break when waiting for ticks on the first execution
Dec 23, 2023
LiquidBounce Branch
Nextgen
LiquidBounce Build/Version
latest
Operating System
macOS, Linux, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
Minecraft Version
1.20.X
Describe the bug
If a subroutine waits for n ticks on the first execution, it will only wait until the next tick.
Steps to reproduce
This unit test found the bug:
Client Log
Screenshots
No response
The text was updated successfully, but these errors were encountered: