Removed the 'isInteresting' check for now.

This commit is contained in:
CrazyPants committed 2014-05-05 14:46:57 +08:00
1 parent be623e1877
commit f4d9b1726d
1 file changed
+10 -19
@@ -277,28 +277,19 @@ public class TileFarmStation extends AbstractPoweredTaskEntity implements IEntit
double y = (yCoord + 0.5D - entity.posY);
double z = (zCoord + 0.5D - entity.posZ);
if (isInteresting(entity)) {
double distance = Math.sqrt(x * x + y * y + z * z);
if(distance < 1.25) {
hooverEntity(entity);
} else {
double speed = 0.035;
entity.motionX += x / distance * speed;
entity.motionY += y * speed;
entity.motionZ += z / distance * speed;
}
double distance = Math.sqrt(x * x + y * y + z * z);
if(distance < 1.25) {
hooverEntity(entity);
} else {
double speed = 0.035;
entity.motionX += x / distance * speed;
entity.motionY += y * speed;
entity.motionZ += z / distance * speed;
}
}
}
private boolean isInteresting(EntityItem entity) {
for (int i = 0; i < inventory.length; i++) {
if (isMachineItemValidForSlot(i, entity.getEntityItem()))
return true;
}
return false;
}
private boolean isFull() {
for (int i = minSupSlot; i <= maxSupSlot; i++) {
ItemStack stack = inventory[i];