mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-18 19:29:17 +00:00
use foreach
This commit is contained in:
1 parent
f4121b0849
commit
4c52620f0f
1 file changed
+1
-4
@@ -107,10 +107,7 @@ public class FarmLogicArboreal extends FarmLogicHomogeneous {
|
||||
AxisAlignedBB harvestBox = AxisAlignedBB.getBoundingBox(min.x, min.y, min.z, max.x, max.y, max.z);
|
||||
List<Entity> list = getWorld().getEntitiesWithinAABB(Entity.class, harvestBox);
|
||||
|
||||
int i;
|
||||
for (i = 0; i < list.size(); i++) {
|
||||
Entity entity = list.get(i);
|
||||
|
||||
for (Entity entity : list) {
|
||||
if (entity instanceof EntityItem) {
|
||||
EntityItem item = (EntityItem) entity;
|
||||
if (!item.isDead) {
|
||||
|
||||
Reference in new issue
Block a user