Skip to content

Commit

Permalink
fix: reset callbacks after hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
seleb committed Aug 26, 2021
1 parent f110b0b commit 7cbcb8d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/helpers/kitsy-script-toolkit.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ if (!hooked) {
// Hook everything
kitsy.applyHooks();

// reset callbacks using hacked functions
bitsy.bitsyOnUpdate(bitsy.update);
bitsy.bitsyOnQuit(bitsy.stopGame);
bitsy.bitsyOnLoad(bitsy.load_game);

// Start the game
bitsy.startExportedGame.apply(this, arguments);
};
Expand Down

0 comments on commit 7cbcb8d

Please sign in to comment.