mirror of
https://github.com/songoda/EpicHoppers.git
synced 2024-11-10 04:31:28 +01:00
Fix suction picking up items that it shouldn't be
This commit is contained in:
parent
e0c06ae6ac
commit
9653ba7192
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user