if ( (c3master != null && !c3master.equals(entity.getC3Master()))|| (c3master == null && entity.getC3Master() != null) ) { playerUnits = c3members.elements(); while ( playerUnits.hasMoreElements() ) { Entity unit = (Entity) playerUnits.nextElement(); client.sendUpdateEntity( unit ); } }
    public void customizeMech() {        if (lisEntities.getSelectedIndex() == -1) {            return;        }        Entity entity = client.game.getEntity(entityCorrespondance[lisEntities.getSelectedIndex()]);        boolean editable = entity.getOwnerId() == client.getLocalPlayer().getId();        // display dialog        CustomMechDialog cmd = new CustomMechDialog(client, entity, editable);        cmd.refreshOptions();        cmd.show();        if (editable && cmd.isOkay()) {            // send changes            client.sendUpdateEntity(entity);        }    }