Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-241851

Client food item stack desync when picking up food after eating

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.17.1, 1.18 Pre-release 4, 1.18.1, 22w07a, 1.20.2, 23w41a, 1.21.4, 25w02a
    • None
    • Confirmed
    • Inventory, Networking
    • Normal
    • Platform

      The food's stack size decreases even though it is getting refilled, and when I open my inventory and click on it, the game finally realizes the stack is full.

      What I expected to happen was...:
      The stack of 16 honey bottles should stay at 16 after I drink one (-1) and pick one up off of the ground (+1).

      What actually happened was...:
      The stack of 16 honey bottles decreases to 15 after I drink one AND I pick up another honey bottle from the ground. I have to open my inventory and click on the stack, or switch the stack to my off-hand (using the keyboard key) for the stack to realize it has 16 items. This is why I think it is a client desynchronization with the server, once the stack is reprocessed when I click on it, it corrects itself.

      Steps to Reproduce:

      1. Drop a honey bottle on the ground in front of you and stand back.
      2. Put 16 honey bottles in your hotbar slot 1.
      3. Fill the rest of your inventory with a different item (like seeds).
      4. Change your game mode to survival (if not already).
      5. Get with in item pick-up range of the first honey bottle you threw (stand over it). The goal is to pick up this item the exact moment you finish eating.
      6. Eat.
      7. Watch your character pick up the honey bottle on the ground and the honey bottle stack go down to 15 simultaneously.
      8. Open your inventory and click on the stack and watch it jump back up to 16.

            Unassigned Unassigned
            Redstone Gopher Christopher Ling
            Votes:
            8 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: