mojira.dev
MC-122819

Changes to the hitbox of hoppers makes them unable to pick up items

The bug

The changes to the hitboxes of a hopper affect items that get thrown onto the hopper from the side. In the picture I provided (

[media]

), you can see the bug in action. When you throw an item in from the top it gets pulled down to the lowest hopper; no problem. When you throw an item in from the side, like I did, they just don't get picked up. When you break the hoppers from the top down the items get picked up and end up in the lowest one.

Code analysis

TileEntityHopper.captureDroppedItems(IHopper) first checks if there is an inventory above it. If so, it will attempt to pull an item from it and then return true or false. If there is not an inventory above it, it will try to find item entities and put them in its inventory.

Since there is an inventory above the hopper here, it never checks for items above it.

Linked issues

Attachments

Comments 2

As a side note: This would make all current designs of using block entities above hoppers to reduce lag ineffective. Possibly this check should only be done if the container above is not a full cube.

Edit: As pointed out by others (elsewhere) it might be wanted that hoppers can collect items travelling through a block tower and therefore hoppers should try collecting items all the time regardless of which block is above.

It's now picking up entities that are in the hopper-cavity, when items land on the rim, they don't get picked up. I'd say that's a wonderful solution/fix, well done! 😃 👍

Elemend

Fry

Confirmed

hitbox, hopper, hoppers, items

Minecraft 17w48a

Minecraft 17w50a

Retrieved