Skip to content

Commit 3be20ad

Browse files
authored
Update mineflayer.test.js
1 parent 98e4487 commit 3be20ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/mineflayer.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ squid.testedVersions.forEach((testedVersion, i) => {
173173
const pos = bot.entity.position.offset(0, -1, 0).floored()
174174
// Set a dirt block below the bot so we can easily dig
175175
bot.chat(`/setblock ${pos.x} ${pos.y} ${pos.z} dirt`)
176-
await once(bot, `blockUpdate:${pos}`, 4000)
176+
await onceWithTimeout(bot, `blockUpdate:${pos}`, 4000)
177177
console.log('Block at', pos, bot.blockAt(pos))
178178

179179
const p = onceWithTimeout(bot2, 'blockUpdate', 4000, (old, now) => {

0 commit comments

Comments
 (0)