diff --git a/src/classes/MyHandler/MyHandler.ts b/src/classes/MyHandler/MyHandler.ts index 55454e610..7d9e86b0a 100644 --- a/src/classes/MyHandler/MyHandler.ts +++ b/src/classes/MyHandler/MyHandler.ts @@ -1272,8 +1272,13 @@ export default class MyHandler extends Handler { if (match.enabled) { // User is taking too many - if (match.min !== 0) { + if ( + match.min !== 0 || + match.intent === 0 || + match.sell?.toValue(keyPrice.metal) === 0 // Just precaution - can't set this if intent was bank + ) { // If min is set to 0, how come it can be understocked right? + // fix exploit found on August 4th, 2021 const amountInInventory = inventoryManager.getInventory.getAmount(sku, false); if (amountInInventory > 0) {