diff --git a/client/src/components/instance.constructs.jsx b/client/src/components/instance.constructs.jsx index 577fe84c..16870b9c 100644 --- a/client/src/components/instance.constructs.jsx +++ b/client/src/components/instance.constructs.jsx @@ -120,10 +120,10 @@ function Construct(props) { setItemUnequip([]); return true; } - function hoverInfo(e, info) { - if (!info) return false; e.stopPropagation(); + if (!info) return false; + if (vboxSelected[0] || itemEquip > -1) return false; return setInfo(info); } diff --git a/client/src/components/vbox.component.jsx b/client/src/components/vbox.component.jsx index 01ce93c9..a13c1c4e 100644 --- a/client/src/components/vbox.component.jsx +++ b/client/src/components/vbox.component.jsx @@ -436,10 +436,16 @@ class Vbox extends preact.Component { // function hoverInfo(e, newInfo) { e.stopPropagation(); + + if (vboxSelected[0]) return true; + if (combiner.length !== 0) { + const base = combiner.find(c => !['Red', 'Blue', 'Green'].includes(vbox.bound[c])); + if (base || base === 0) return true; + } return setInfo(newInfo); } - const classes = `vbox`; + const classes = 'vbox'; return (
{vboxElement()}