Fixed loopAll() async errors

This commit is contained in:
DJj123dj
2024-10-03 20:46:01 +02:00
parent 7c76be8473
commit 56e1fb3939
14 changed files with 24 additions and 24 deletions
+2 -2
View File
@@ -139,7 +139,7 @@ export class ODCounterCooldown extends ODCooldown<{value:number}> {
async init(){
if (this.ready) return
setInterval(() => {
this.data.forEach((cooldown) => {
this.data.loopAll((cooldown) => {
cooldown.data.value = cooldown.data.value - this.decrement
if (cooldown.data.value <= this.cancelLimit){
cooldown.active = false
@@ -217,7 +217,7 @@ export class ODIncrementalCounterCooldown extends ODCooldown<{value:number}> {
async init(){
if (this.ready) return
setInterval(() => {
this.data.forEach((cooldown) => {
this.data.loopAll((cooldown) => {
cooldown.data.value = cooldown.data.value - this.decrement
if (cooldown.data.value <= this.cancelLimit){
cooldown.active = false