Skip to content

Commit a934763

Browse files
clear control states on respawn (grim simulation)
Clear control states on bot respawn event.
1 parent 7fb05a8 commit a934763

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/plugins/physics.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,7 @@ function inject(bot, {physicsEnabled, maxCatchupTicks}) {
502502
})
503503
bot.on('respawn', () => {
504504
shouldUsePhysics = false
505+
bot.clearControlStates()
505506
})
506507
bot.on('login', () => {
507508
shouldUsePhysics = false

0 commit comments

Comments
 (0)