Skip to content

Commit

Permalink
Change physicTick to new physicsTick (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
SilkePilon authored Nov 23, 2023
1 parent 51363f4 commit c7f44d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CollectBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ async function mineBlock (bot: Bot, block: Block, options: CollectOptionsFull):
// Waiting for items to drop
await new Promise<void>(resolve => {
let remainingTicks = 10
tempEvents.subscribeTo('physicTick', () => {
tempEvents.subscribeTo('physicsTick', () => {
remainingTicks--
if (remainingTicks <= 0) {
tempEvents.cleanup()
Expand Down

0 comments on commit c7f44d7

Please sign in to comment.