1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-29 05:55:27 +01:00

Fix incorrect entity max health

Monster damage option will work again when using the Kill action for jobs.
https://github.com/Zrips/Jobs/issues/429#issuecomment-511219013
This commit is contained in:
montlikadani 2019-07-14 19:30:27 +02:00
parent 3cc2c97ec8
commit fb392c0cd1
3 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ public class v1_12 implements NMS {
@Override @Override
public double getMaxHealth(LivingEntity entity) { public double getMaxHealth(LivingEntity entity) {
return entity.getAttribute(Attribute.GENERIC_MAX_HEALTH).getDefaultValue(); return entity.getAttribute(Attribute.GENERIC_MAX_HEALTH).getBaseValue();
} }
@Override @Override

View File

@ -39,7 +39,7 @@ public class v1_13 implements NMS {
@Override @Override
public double getMaxHealth(LivingEntity entity) { public double getMaxHealth(LivingEntity entity) {
return entity.getAttribute(Attribute.GENERIC_MAX_HEALTH).getDefaultValue(); return entity.getAttribute(Attribute.GENERIC_MAX_HEALTH).getBaseValue();
} }
@Override @Override

View File

@ -39,7 +39,7 @@ public class v1_14 implements NMS {
@Override @Override
public double getMaxHealth(LivingEntity entity) { public double getMaxHealth(LivingEntity entity) {
return entity.getAttribute(Attribute.GENERIC_MAX_HEALTH).getDefaultValue(); return entity.getAttribute(Attribute.GENERIC_MAX_HEALTH).getBaseValue();
} }
@Override @Override