1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-01-23 15:36:54 +00:00

Wait until the turtle has gone in explosion tests

Rather than a fixed delay. This should help when turtle tasks are
running a little slow.
This commit is contained in:
Jonathan Coates 2024-09-11 08:52:42 +01:00
parent 36d05e4774
commit 370e5f92a0
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06

View File

@ -701,7 +701,7 @@ class Turtle_Test {
@GameTest
fun Breaks_exploding_block(context: GameTestHelper) = context.sequence {
thenOnComputer { turtle.dig(Optional.empty()) }
thenIdle(2)
thenWaitUntil { context.assertBlockPresent(Blocks.AIR, BlockPos(2, 2, 2)) }
thenExecute {
context.assertItemEntityCountIs(ModRegistry.Items.TURTLE_NORMAL.get(), 1)
context.assertItemEntityCountIs(Items.BONE_BLOCK, 65)