additional pet health modifiers

This commit is contained in:
2025-03-18 15:48:59 -05:00
parent 41713a9412
commit 7820ff06c9
+5
View File
@@ -2072,6 +2072,11 @@ public class Mob extends AbstractIntelligenceAgent {
}
this.deathTime = 0;
if(this.isPet() && this.bonuses != null){
this.healthMax = this.healthMax + this.bonuses.getFloat(ModType.HealthFull,SourceType.None);
this.health.set(this.healthMax);
}
InterestManager.setObjectDirty(this);
} catch (Exception e) {
Logger.error(e.getMessage());