diff --git a/src/main/java/crazypants/enderio/machine/farm/TileFarmStation.java b/src/main/java/crazypants/enderio/machine/farm/TileFarmStation.java index e2dcf187..6cc77cc4 100644 --- a/src/main/java/crazypants/enderio/machine/farm/TileFarmStation.java +++ b/src/main/java/crazypants/enderio/machine/farm/TileFarmStation.java @@ -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];