clientgui.getClient().sendModeChange(en.getId(), en.getEquipmentNum(m), bDumping ? 1 : 0);
clientgui.getClient().sendModeChange(en.getId(), en.getEquipmentNum(m), bDumping ? -1 : 0);
        public void actionPerformed(ActionEvent ae) {            if ("dump".equals(ae.getActionCommand())) { //$NON-NLS-1$                Mounted m = getSelectedEquipment();                boolean bOwner = clientgui.getClient().getLocalPlayer().equals(en.getOwner());                if (m == null || !bOwner || !(m.getType() instanceof AmmoType) ||                        m.getShotsLeft() <= 0) {                    return;                }                boolean bDumping;                boolean bConfirmed;                if (m.isPendingDump()) {                    bDumping = false;                    String title = Messages.getString("MechDisplay.CancelDumping.title"); //$NON-NLS-1$                    String body = Messages.getString("MechDisplay.CancelDumping.message", new Object[]{m.getName()}); //$NON-NLS-1$                    bConfirmed = clientgui.doYesNoDialog(title, body);                } else {                    bDumping = true;                    String title = Messages.getString("MechDisplay.Dump.title"); //$NON-NLS-1$                    String body = Messages.getString("MechDisplay.Dump.message", new Object[]{m.getName()}); //$NON-NLS-1$                    bConfirmed = clientgui.doYesNoDialog(title, body);                }                if (bConfirmed) {                    m.setPendingDump(bDumping);                    clientgui.getClient().sendModeChange(en.getId(), en.getEquipmentNum(m), bDumping ? 1 : 0);                }            }        }