mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Fixed health not scaling (most visible in the case of iron golems)
This commit is contained in:
parent
d8419115fc
commit
96e5af9743
1 changed files with 2 additions and 1 deletions
|
@ -159,7 +159,8 @@ public class EntityBehaviour<T extends Entity> {
|
|||
l.deathTime = from.deathTime;
|
||||
l.stuckStingerTimer = from.stuckStingerTimer;
|
||||
l.stuckArrowTimer = from.stuckArrowTimer;
|
||||
l.setHealth(from.getHealth());
|
||||
|
||||
l.setHealth((from.getHealth() / from.getMaxHealth()) * l.getMaxHealth());
|
||||
|
||||
copyInventory(from, l);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue