narrowtux/DropChest — Issue #6: Overlapping chest areas with distinct filters doesn't work; items are not picked up
Author: lassevk
Created: 2012-01-07 16:40:04+00:00
State: open

It seems the logic for finding out which chest that can pick up an item looks like this:

1. For each loose item in the world
2. Find the chest with the lowest ID, that is in range, and that has room
3. If the filter for the chest allows it, put the item into the chest

The problem is that I created two chests, one with a large range that picks up cobblestone (chest id 63), and one with a smaller range that only picks up eggs (chest id 64).

The egg-chest is within the range of the cobblestone-chest, and eggs are not picket up by it.

However, if I remove the cobblestone-chest, eggs are correctly picked up by the egg-chest.

To reproduce:

1. Place a chest, add it to dropchest with a range of 64, and set a filter on it to only pick up cobblestone
2. Go about 10 blocks away, place a chest, add it to dropchest with a range of 5, and set a filter on it to only pick up something other than cobblestone (that you have, so you can test)
3. Now, within the range of the last chest, drop an item of what that chest is configured to pick up
4. Notice that the item is not picked up and is left floating in the world
5. Now remove the first chest, by id, and notice that the floating item is immediately picked up, and is now in the second chest

This is latest (as of posting this issue) version of dropchest, with craftbukkit 1611, minecraft server 1.0.1.