From 19072926e626e7f73c098c4f7fe4d70f5d708468 Mon Sep 17 00:00:00 2001 From: Mashy Date: Wed, 20 Nov 2019 16:42:10 +1000 Subject: [PATCH] bits check on combine --- client/src/components/vbox.component.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/vbox.component.jsx b/client/src/components/vbox.component.jsx index 9e22ccb5..9263662d 100644 --- a/client/src/components/vbox.component.jsx +++ b/client/src/components/vbox.component.jsx @@ -355,7 +355,7 @@ class Vbox extends preact.Component { text = bits ? `Buy ${comboItem} - ${bits}b` : `Combine - ${comboItem}`; - mouseEvent = sendVboxCombine; + if (vbox.bits >= bits) mouseEvent = sendVboxCombine; } else if (stashSelect.length === 0 && shopSelect.length === 1) { const item = shopSelect[0]; text = `Buy ${vbox.free[item[0]][item[1]]} ${item[0] + 1}b`;