Skip to content

Commit

Permalink
Fix lava swimming (#149)
Browse files Browse the repository at this point in the history
* Fix lava swimming

* linter
  • Loading branch information
etiaro authored May 19, 2021
1 parent 97d90fb commit 10ed86c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/physics.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class Physics {
for (let i = 0; i < ticks; i++) {
controller(state, i)
this.bot.physics.simulatePlayer(state, this.world)
if (state.isInLava) return state
if (goal(state)) return state
}

Expand Down

0 comments on commit 10ed86c

Please sign in to comment.