diff --git a/src/classes/MyHandler.ts b/src/classes/MyHandler.ts index 020be3f88..e4c5cf8df 100644 --- a/src/classes/MyHandler.ts +++ b/src/classes/MyHandler.ts @@ -1394,15 +1394,15 @@ export = class MyHandler extends Handler { * (currKeys ≤ minKeys OR minKeys ≤ currKeys ≤ maxKeys OR currKeys ≥ maxKeys) */ const isRemoveAutoKeys = - (currReftoScrap >= userMinReftoScrap && - currReftoScrap <= userMaxReftoScrap && + (((currReftoScrap >= userMinReftoScrap && currReftoScrap <= userMaxReftoScrap) || + currReftoScrap >= userMaxReftoScrap) && (currKeys <= userMinKeys || (currKeys >= userMinKeys && currKeys <= userMaxKeys) || currKeys >= userMaxKeys)) !== false; /* - // <·····●····························●·····> (OR) \ + // <·····●····························●·····> \ // Keys --------|----------------------------|----------> ⟩ AND - // ●————————————————————————————● (AND) / + // ●————————————————————————————●·····> / // Refs --------|----------------------------|----------> // min max */