Skip to content

Commit

Permalink
chore: compatibility for nodecg 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoishin committed Nov 22, 2024
1 parent 7eb52ff commit 5d576dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/channels/pinball/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ function GetHeightFromPos(position: vector3) {
}

keysRep.on('change', (newKeys) => {
if (typeof newKeys === 'undefined') {
return;
}
PinballModule.then((game) => {
game.toggleLeftFlipper(newKeys.LDown);
game.toggleRightFlipper(newKeys.RDown);
Expand Down

0 comments on commit 5d576dc

Please sign in to comment.