Skip to content

Commit

Permalink
🔀 Merge pull request #846 from TF2Autobot/development
Browse files Browse the repository at this point in the history
URGENT - v4.4.3
  • Loading branch information
idinium96 authored Aug 4, 2021
2 parents 653986f + cb8ea01 commit 118d38e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/classes/MyHandler/MyHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 118d38e

Please sign in to comment.