Skip to content

Commit

Permalink
Fix #4830 functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryLoenwind committed Feb 21, 2019
1 parent f228a5c commit f9bab4c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -142,7 +142,7 @@ private List<EntityItem> selectEntitiesWithinAABB(World worldIn, AxisAlignedBB b
for (int chunkY = minChunkYClamped; chunkY <= maxChunkYClamped; ++chunkY) {
for (Entity entity : entityLists[chunkY]) {
if (!entity.isDead && (entity instanceof EntityItem) && entity.getEntityBoundingBox().intersects(bb)
&& (filter == null || filter.doesItemPassFilter(null, ((EntityItem) entity).getItem())) && MagnetUtil.shouldAttract(getPos(), entity, false)) {
&& (filter == null || filter.doesItemPassFilter(null, ((EntityItem) entity).getItem())) && MagnetUtil.shouldAttract(getPos(), entity, true)) {
result.add((EntityItem) entity);
if (maxItems > 0 && maxItems <= result.size()) {
return result;
Expand Down

0 comments on commit f9bab4c

Please sign in to comment.