mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-14 01:14:18 +00:00
quick fixes : enhanced for loop
This commit is contained in:
1 parent
59f3b5b72a
commit
83f54f1e97
33 files changed
+74
-96
No files matched your search
@@ -90,12 +90,11 @@ public class MiningExplosion extends Explosion {
|
||||
int l1 = MathHelper.floor_double(this.explosionY + (double) this.explosionSize + 1.0D);
|
||||
int i2 = MathHelper.floor_double(this.explosionZ - (double) this.explosionSize - 1.0D);
|
||||
int j2 = MathHelper.floor_double(this.explosionZ + (double) this.explosionSize + 1.0D);
|
||||
List list = this.world.getEntitiesWithinAABBExcludingEntity(
|
||||
List<Entity> list = this.world.getEntitiesWithinAABBExcludingEntity(
|
||||
this.exploder, AxisAlignedBB.getBoundingBox(i, k, i2, j, l1, j2));
|
||||
Vec3 vec3 = Vec3.createVectorHelper(this.explosionX, this.explosionY, this.explosionZ);
|
||||
|
||||
for (int k2 = 0; k2 < list.size(); ++k2) {
|
||||
Entity entity = (Entity) list.get(k2);
|
||||
for (Entity entity : list) {
|
||||
double d7 =
|
||||
entity.getDistance(this.explosionX, this.explosionY, this.explosionZ) / (double) this.explosionSize;
|
||||
|
||||
|
||||
Reference in new issue
Block a user