Skip to content

Commit

Permalink
Fix mobs changing to level 0 on damage
Browse files Browse the repository at this point in the history
  • Loading branch information
Archy-X committed Apr 29, 2024
1 parent 44aff2c commit 19a4d24
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public AureliumMob(LivingEntity mob, int level, AuraMobs plugin) {
double maxValue = healthAttr.getValue();
mob.setHealth(Math.min(health, maxValue));

mob.getPersistentDataContainer().set(plugin.getMobKey(), PersistentDataType.INTEGER, level);
mob.getPersistentDataContainer().set(plugin.getMobKey(), PersistentDataType.INTEGER, level1);
if (plugin.isNamesEnabled()) {
mob.setCustomName(ColorUtils.colorMessage(plugin.optionString("custom_name.format")
.replace("{mob}", plugin.getMsg("mobs." + mob.getType().name().toLowerCase()))
Expand Down

0 comments on commit 19a4d24

Please sign in to comment.