Owyn лет назад: 8
Родитель
Сommit
8a0f26aa2a
1 измененных файлов с 2 добавлено и 10 удалено
  1. 2 10
      index.js

+ 2 - 10
index.js

@@ -107,13 +107,9 @@ module.exports = function boxOpener(dispatch){
 			{
 			{
 				isLooting = true;
 				isLooting = true;
 				statOpened++;
 				statOpened++;
-				if(timer)
-				{
-					clearTimeout(timer);
-				}
 				if(!useDelay)
 				if(!useDelay)
 				{
 				{
-					timer = null;
+					clearTimeout(timer);
 					openBox();
 					openBox();
 				}
 				}
 			}
 			}
@@ -121,13 +117,9 @@ module.exports = function boxOpener(dispatch){
 		
 		
 		hook('S_GACHA_END', 1, event => {
 		hook('S_GACHA_END', 1, event => {
 				statOpened++;
 				statOpened++;
-				if(timer)
-				{
-					clearTimeout(timer);
-				}
 				if(!useDelay)
 				if(!useDelay)
 				{
 				{
-					timer = null;
+					clearTimeout(timer);
 					openBox();
 					openBox();
 				}
 				}
 		});
 		});