Fixed the Gaia Guardian's health bar flickering weirdly when it's spawning in a server.

This commit is contained in:
Lizbeth Rika committed 2015-02-28 17:03:13 +00:00
1 parent f9984e1b04
commit bb06d8c841
1 file changed
+4 -2
@@ -402,8 +402,10 @@ public class EntityDoppleganger extends EntityCreature implements IBotaniaBossWi
for(int i = 0; i < 2; i++)
spawnExplosionParticle();
setHealth(getHealth() + (MAX_HP - 1F) / SPAWN_TICKS);
setInvulTime(invul - 1);
if(!worldObj.isRemote) {
setHealth(getHealth() + (MAX_HP - 1F) / SPAWN_TICKS);
setInvulTime(invul - 1);
}
motionY = 0;
} else {
if(isAggored()) {