this.entityUpdate( lastUnitMember.getId() );
entityUpdate( lastUnitMember.getId() );
    private void receiveEntityDelete(Packet c, int connIndex) {        int entityId = c.getIntValue(0);        final Entity entity = game.getEntity(entityId);        // Only allow players to delete their *own* entities.        if ( entity != null && entity.getOwner() == getPlayer(connIndex) ) {            // If we're deleting a Protomech, recalculate unit numbers.            if ( entity instanceof Protomech ) {                // How many Protomechs does the player have (include this one)?                int numPlayerProtos = game.getSelectedEntityCount                    ( new EntitySelector() {                            private final int ownerId = entity.getOwnerId();                            public boolean accept( Entity entity ) {                                if ( entity instanceof Protomech &&                                     ownerId == entity.getOwnerId() )                                    return true;                                return false;                            }                        } );                // According to page 54 of the BMRr, Protomechs must be                // deployed in full Points of five, unless "losses" have                // reduced the number to less that that.                final char oldMax =                    (char)(Math.ceil( numPlayerProtos / 5.0 )-1);                char newMax =                    (char)(Math.ceil( (numPlayerProtos-1)/ 5.0 )-1);                char deletedUnitNum = entity.getUnitNumber();                // Do we have to update a Protomech from the last unit?                if ( oldMax != deletedUnitNum && oldMax != newMax ) {                    // Yup.  Find a Protomech from the last unit, and                    // set it's unit number to the deleted entity.                    Enumeration lastUnit = game.getSelectedEntities                        ( new EntitySelector() {                            private final int ownerId = entity.getOwnerId();                            private final char lastUnitNum = oldMax;                            public boolean accept( Entity entity ) {                                if ( entity instanceof Protomech &&                                     ownerId == entity.getOwnerId() &&                                     lastUnitNum == entity.getUnitNumber() )                                    return true;                                return false;                            }                        } );                    Entity lastUnitMember = (Entity) lastUnit.nextElement();                    lastUnitMember.setUnitNumber( deletedUnitNum );                    this.entityUpdate( lastUnitMember.getId() );                } // End update-unit-numbetr            } // End added-Protomech            game.removeEntity(entityId, IEntityRemovalConditions.REMOVE_NEVER_JOINED);            send(createRemoveEntityPacket(entityId, IEntityRemovalConditions.REMOVE_NEVER_JOINED));        }    }