mojira.dev
MC-175090

Partially filled hoppers can delete bone meal from composters

The Bug

Hoppers can delete bone meal from a composter on top if each slot of the hopper has a single item (That isn't bone meal and is not a full stack). It would be expected that the hopper would leave the bone meal in the composter and not delete it, as if all slots of the hopper are completely filled with full stacks.

This also affects hopper minecarts, according to MC-242697.

When the hopper checks if it can take the bone meal item from the composter

  1. Checks if all slots are 100% fill

  2. If fill, stop

  3. If not fill, removes bone meal from the composter and tries to insert it into the hopper

  4. If it can insert the bone meal, it does so and stops

  5. If it can't insert
    → ✔  Return bone meal to the composter
    → ❌  Stop
    The hopper should just not take the bone meal before testing if it can actually fit

To reproduce

  1. Fill a hopper by placing one item in each slot (That isn't bone meal and is not a full stack)

    [media]
  2. Place a composter on top

  3. Fill the composter up
    → ❌ At the last level, the hopper will grab the bone meal from the composter, but because each slot has an item and the hopper is not filled with full stacks, the item will be deleted

Video

[media]

Linked issues

Attachments

Comments 13

The problem is that the composter is resetting itself when its inventory is told that it is changed, but it doesn't actually check that someone took the bonemeal out of the inventory.

In 1.16.1 and 20w29a

1.16.2 Pre-release 2 is affected.

Seems to be fixed in 1.16.2-rc1.

3 more comments

Thanks, now it is working for me.

Can confirm in 1.17.1.

Still able to be reproduced in 1.19.2 

can confirm in 24w21b

Tested this in 1.21.4 and I was not able to replicate it so it might be fixed? Forget about that last part, I made a small mistake on the test, replicated it based on the attached video and it still happens.

RedCMD

gnembon

Confirmed

Gameplay

Normal

Redstone

bone_meal, composter, hopper, item

1.15.2, 20w11a, 20w12a, 1.16 Pre-release 2, 1.16 Release Candidate 1, ..., 1.19.2, 1.19.3, 1.19.4 Release Candidate 1, 23w42a, 1.21.4

Retrieved