mirror of
https://github.com/songoda/UltimateStacker.git
synced 2025-02-06 22:41:21 +01:00
Fixed error when health was too high.
This commit is contained in:
parent
c02a5b1751
commit
442334d898
@ -125,7 +125,8 @@ public class StackingTask extends BukkitRunnable {
|
||||
|
||||
fixHealth(entity, initialEntity);
|
||||
if (Setting.STACK_ENTITY_HEALTH.getBoolean())
|
||||
entity.setHealth(initialEntity.getHealth());
|
||||
entity.setHealth(entity.getMaxHealth() < initialEntity.getHealth()
|
||||
? entity.getMaxHealth() : initialEntity.getHealth());
|
||||
|
||||
initialEntity.remove();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user