Skip to content
Permalink
Browse files

Only allow the ranged collector to pickup items that can be picked up

  • Loading branch information
me4502 committed Jan 30, 2020
1 parent 6d3620b commit a8df046a1dc1f31656e2a5debff0fac5afa59663
@@ -108,7 +108,7 @@ public boolean collect() {
List<Item> itemsForChest = Lists.newArrayList();

for (Entity entity : LocationUtil.getNearbyEntities(centre, radius)) {
if (entity.isValid() && entity instanceof Item) {
if (entity.isValid() && entity instanceof Item && ((Item) entity).getPickupDelay() < 1) {
ItemStack stack = ((Item) entity).getItemStack();

if(!ItemUtil.isStackValid(stack))

0 comments on commit a8df046

Please sign in to comment.
You can’t perform that action at this time.