entity.restore(); entity.setOwner(getPlayer(connIndex));
    private void receiveEntityAdd(Packet c, int connIndex) {        Entity entity = (Entity)c.getObject(0);                entity.restore();        entity.setOwner(getPlayer(connIndex));        // Only assign an entity ID when the client hasn't.        if ( Entity.NONE == entity.getId() ) {             entity.setId(getFreeEntityId());         }        game.addEntity(entity.getId(), entity);                send(createAddEntityPacket(entity.getId()));    }