Skip to content

Commit

Permalink
expose doPhysics for manuall ticking
Browse files Browse the repository at this point in the history
  • Loading branch information
zardoy committed Dec 18, 2024
1 parent 390ce12 commit fd2280a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/plugins/physics.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ function inject (bot, { physicsEnabled, maxCatchupTicks }) {
if (catchupTicks >= PHYSICS_CATCHUP_TICKS) break
}
}
bot.doPhysics = doPhysics

function tickPhysics (now) {
if (bot.blockAt(bot.entity.position) == null) return // check if chunk is unloaded
Expand Down

0 comments on commit fd2280a

Please sign in to comment.