Skip to content

Commit

Permalink
Might help with #230
Browse files Browse the repository at this point in the history
  • Loading branch information
ploppyperson committed Sep 5, 2021
1 parent dd32bf9 commit 7778fc9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public int calculateStep() {
public void onSpawn(StackEntity spawned) {
AttributeInstance attribute = getEntity().getAttribute(Attribute.GENERIC_MAX_HEALTH);
AttributeInstance spawnedAttribute = spawned.getEntity().getAttribute(Attribute.GENERIC_MAX_HEALTH);
double maxHealth = attribute.getValue();
double maxHealth = Math.min(attribute.getValue(), attribute.getDefaultValue());
StackableMobHook smh = sm.getHookManager().getApplicableHook(spawned);
if (smh instanceof MythicMobsStackHook) {
sm.getServer().getScheduler().runTaskLater(sm, bukkitTask -> {
Expand Down

0 comments on commit 7778fc9

Please sign in to comment.