Initialize GG AI in the right place

This commit is contained in:
Vincent Lee committed 2017-01-23 15:37:36 -06:00
1 parent e707ce1330
commit ef459e9468
1 file changed
+6 -2
@@ -148,8 +148,6 @@ public class EntityDoppleganger extends EntityLiving implements IBotaniaBoss {
public EntityDoppleganger(World world) {
super(world);
setSize(0.6F, 1.8F);
tasks.addTask(0, new EntityAISwimming(this));
tasks.addTask(1, new EntityAIWatchClosest(this, EntityPlayer.class, ARENA_RANGE * 1.5F));
isImmuneToFire = true;
experienceValue = 825;
Botania.proxy.addBoss(this);
@@ -289,6 +287,12 @@ public class EntityDoppleganger extends EntityLiving implements IBotaniaBoss {
return true;
}
@Override
protected void initEntityAI() {
tasks.addTask(0, new EntityAISwimming(this));
tasks.addTask(1, new EntityAIWatchClosest(this, EntityPlayer.class, ARENA_RANGE * 1.5F));
}
@Override
protected void entityInit() {
super.entityInit();