mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-16 10:34:40 +00:00
Gaia guardian minor fixes: make anti-flight smarter, and search for initial player aggro further in the entire arena. Closes #2304
This commit is contained in:
1 parent
51e8c30c7b
commit
4f4971ca73
1 file changed
+2
-3
@@ -688,7 +688,8 @@ public class EntityDoppleganger extends EntityLiving implements IBotaniaBoss {
|
||||
if (world.isRemote) {
|
||||
particles();
|
||||
EntityPlayer player = Botania.proxy.getClientPlayer();
|
||||
player.capabilities.isFlying = player.capabilities.isFlying && player.capabilities.isCreativeMode;
|
||||
if(getPlayersAround().contains(player))
|
||||
player.capabilities.isFlying = player.capabilities.isFlying && player.capabilities.isCreativeMode;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -814,8 +815,6 @@ public class EntityDoppleganger extends EntityLiving implements IBotaniaBoss {
|
||||
if(spawnMissiles)
|
||||
spawnMissile();
|
||||
} else {
|
||||
float range = 3F;
|
||||
players = world.getEntitiesWithinAABB(EntityPlayer.class, new AxisAlignedBB(posX - range, posY - range, posZ - range, posX + range, posY + range, posZ + range));
|
||||
if(!players.isEmpty())
|
||||
damageEntity(DamageSource.causePlayerDamage(players.get(0)), 0);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user