MV Sleek Gauges Question

So, I am using the sleek gauges pluin and had a question. Is there a way to hide the actors mp gauge if the actor has no mp for that specific class? Thanks for any help or info.
Plugin: https://github.com/mjshi/RPGMakerRepo/blob/master/PrettySleekGauges/PrettySleekGauges.js
Assuming that the actor has zero maximum MP, you'll need to edit a couple of methods in the plugin file:

JavaScript:
Window_Base.prototype.drawActorMp = function(actor, x, y, width) {
    if (!actor.mmp) return; // skip gauge creation if actor's max MP is zero
    width = width || 186;
    this.drawAnimatedGauge(x, y, width, actor.mpRate(), this.mpGaugeColor1(), this.mpGaugeColor2(), "mp");
    this._gauges[this.makeGaugeKey(x, y)].setExtra(TextManager.mpA, actor.mp, actor.mmp);
}

JavaScript:
Window_PartyDetail.prototype.drawActorMp = function(actor, x, y, width) {
    if (!actor.mmp) return; // skip gauge creation if actor's max MP is zero
    width = width || 186;
    var color1 = this.mpGaugeColor1();
    var color2 = this.mpGaugeColor2();
    this.drawStaticGauge(x, y, width, actor.mpRate(), color1, color2, "mp");
    this.changeTextColor(this.systemColor());
    this.drawText(TextManager.mpA, x, y, 44);
    this.drawCurrentAndMax(actor.mp, actor.mmp, x, y, width, this.mpColor(actor), this.normalColor());
};

From a quick glance, it looks like simply skipping the gauge creation shouldn't cause any issues.
Assuming that the actor has zero maximum MP, you'll need to edit a couple of methods in the plugin file:

JavaScript:
Window_Base.prototype.drawActorMp = function(actor, x, y, width) {
    if (!actor.mmp) return; // skip gauge creation if actor's max MP is zero
    width = width || 186;
    this.drawAnimatedGauge(x, y, width, actor.mpRate(), this.mpGaugeColor1(), this.mpGaugeColor2(), "mp");
    this._gauges[this.makeGaugeKey(x, y)].setExtra(TextManager.mpA, actor.mp, actor.mmp);
}

JavaScript:
Window_PartyDetail.prototype.drawActorMp = function(actor, x, y, width) {
    if (!actor.mmp) return; // skip gauge creation if actor's max MP is zero
    width = width || 186;
    var color1 = this.mpGaugeColor1();
    var color2 = this.mpGaugeColor2();
    this.drawStaticGauge(x, y, width, actor.mpRate(), color1, color2, "mp");
    this.changeTextColor(this.systemColor());
    this.drawText(TextManager.mpA, x, y, 44);
    this.drawCurrentAndMax(actor.mp, actor.mmp, x, y, width, this.mpColor(actor), this.normalColor());
};

From a quick glance, it looks like simply skipping the gauge creation shouldn't cause any issues.
Works perfectly. Thanks so much.
This thread is closed due to being reported as solved. If you need it reopened, report it to let us know. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/sleek-gauges-question.175212/