mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-25 14:34:22 +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
@@ -186,11 +186,10 @@ public class RotatingBase extends Entity implements IEntityAdditionalSpawnData {
|
||||
movingobjectposition.hitVec.zCoord);
|
||||
}
|
||||
Entity entity = null;
|
||||
List list = worldObj.getEntitiesWithinAABBExcludingEntity(
|
||||
List<Entity> list = worldObj.getEntitiesWithinAABBExcludingEntity(
|
||||
this, boundingBox.addCoord(motionX, motionY, motionZ).expand(1.0D, 1.0D, 1.0D));
|
||||
double d = 0.0D;
|
||||
for (int j = 0; j < list.size(); j++) {
|
||||
Entity entity1 = (Entity) list.get(j);
|
||||
for (Entity entity1 : list) {
|
||||
if (!entity1.canBeCollidedWith() || entity1 == owner && ticksInAir < 5) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user