Skip to content

Commit

Permalink
allow modifying the internal controlState directly
Browse files Browse the repository at this point in the history
  • Loading branch information
aesthetic0001 authored Dec 3, 2023
1 parent 08208e2 commit 2aefa09
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/plugins/physics.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,10 @@ function inject (bot, { physicsEnabled, maxCatchupTicks }) {
}
}

bot.spoofControlState = (control, state) => {
controlState[control] = state
}

bot.controlState = {}

for (const control of Object.keys(controlState)) {
Expand Down

0 comments on commit 2aefa09

Please sign in to comment.