mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-28 07:55:45 +00:00
Vec3 and AABB factory to plain ctor
This commit is contained in:
1 parent
5a11a58346
commit
f6cfeedd1d
82 files changed
+116
-116
No files matched your search
@@ -483,7 +483,7 @@ public class EntityDoppleganger extends EntityCreature implements IBotaniaBossWi
|
||||
public List<EntityPlayer> getPlayersAround() {
|
||||
ChunkCoordinates source = getSource();
|
||||
float range = 15F;
|
||||
List<EntityPlayer> players = worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(source.posX + 0.5 - range, source.posY + 0.5 - range, source.posZ + 0.5 - range, source.posX + 0.5 + range, source.posY + 0.5 + range, source.posZ + 0.5 + range));
|
||||
List<EntityPlayer> players = worldObj.getEntitiesWithinAABB(EntityPlayer.class, new AxisAlignedBB(source.posX + 0.5 - range, source.posY + 0.5 - range, source.posZ + 0.5 - range, source.posX + 0.5 + range, source.posY + 0.5 + range, source.posZ + 0.5 + range));
|
||||
return players;
|
||||
}
|
||||
|
||||
@@ -695,7 +695,7 @@ public class EntityDoppleganger extends EntityCreature implements IBotaniaBossWi
|
||||
spawnMissile();
|
||||
} else {
|
||||
range = 3F;
|
||||
players = worldObj.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(posX - range, posY - range, posZ - range, posX + range, posY + range, posZ + range));
|
||||
players = worldObj.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