mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-23 23:46:55 +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:
parent
36d05e4774
commit
370e5f92a0
@ -701,7 +701,7 @@ class Turtle_Test {
|
|||||||
@GameTest
|
@GameTest
|
||||||
fun Breaks_exploding_block(context: GameTestHelper) = context.sequence {
|
fun Breaks_exploding_block(context: GameTestHelper) = context.sequence {
|
||||||
thenOnComputer { turtle.dig(Optional.empty()) }
|
thenOnComputer { turtle.dig(Optional.empty()) }
|
||||||
thenIdle(2)
|
thenWaitUntil { context.assertBlockPresent(Blocks.AIR, BlockPos(2, 2, 2)) }
|
||||||
thenExecute {
|
thenExecute {
|
||||||
context.assertItemEntityCountIs(ModRegistry.Items.TURTLE_NORMAL.get(), 1)
|
context.assertItemEntityCountIs(ModRegistry.Items.TURTLE_NORMAL.get(), 1)
|
||||||
context.assertItemEntityCountIs(Items.BONE_BLOCK, 65)
|
context.assertItemEntityCountIs(Items.BONE_BLOCK, 65)
|
||||||
|
Loading…
Reference in New Issue
Block a user