Fix libhooktick

This commit is contained in:
MollTheCoder 2023-01-16 17:54:34 -05:00 committed by GitHub
parent ca0f110a3e
commit d8d2b7a7d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -1,3 +1,4 @@
clearInterval(tickInterval);
const oldTick = tick;
let __registeredTickCallbacks = [];
function everyTick(callback){
@ -9,3 +10,4 @@ tick = function(){
func();
});
}
tickInterval = setInterval(tick, 1000/tps);