public void updatePriority(int priority) {
        if (this.priority < priority) {
            this.priority = priority;
        }

        if (this.priority == -1 && this.packInfo != null && this.packInfo.isComplete()) {
            if (this.packInfo.isOfficial())
                this.priority = 5000;
            else
                this.priority = 1000;
        }
    }