Fix suction picking up items that it shouldn't be

This commit is contained in:
Esophose 2019-05-31 23:42:12 -06:00
parent e0c06ae6ac
commit 9653ba7192

View File

@ -63,7 +63,7 @@ public class ModuleSuction implements Module {
hopper.getLocation().getWorld().getNearbyEntities(hopper.getLocation().add(0.5, 0.5, 0.5), radius, radius, radius).stream()
.filter(entity -> entity.getType() == EntityType.DROPPED_ITEM
&& entity.getTicksLived() > 10
&& entity.getTicksLived() >= ((Item)entity).getPickupDelay()
&& entity.getLocation().getBlock().getType() != Material.HOPPER).forEach(entity -> {
Item item = (Item) entity;