-
Bug
-
Resolution: Fixed
-
Minecraft 1.6.2, Minecraft 14w30c, Minecraft 1.8.1, Minecraft 1.8.2-pre6, Minecraft 15w44b, Minecraft 1.8.9, Minecraft 16w05b, Minecraft 1.9 Pre-Release 4, Minecraft 1.9, Minecraft 1.9.1 Pre-Release 1, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.9.4, Minecraft 1.10.2, Minecraft 16w35a, Minecraft 16w36a, Minecraft 16w39c, Minecraft 1.12, Minecraft 1.12.2, Minecraft 18w14b, Minecraft 1.13-pre2, Minecraft 1.13-pre5, Minecraft 1.13-pre6, Minecraft 1.13-pre8, Minecraft 1.13, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 1.14 Pre-Release 1, Minecraft 1.14, Minecraft 1.14.1 Pre-Release 2, Minecraft 1.14.2, Minecraft 1.14.3, 1.14.4, 19w35a, 19w37a, 1.15.1, 1.15.2, 20w07a, 20w17a, 20w18a, 20w20b, 20w21a, 20w30a, 1.16.2, 1.16.3, 20w46a, 20w51a
-
Confirmed
-
Networking
-
Important
The bug
When using whatever container that automatically updates the contents of a slot (like a furnace) and if the player, with the container GUI open, is constantly moving items into the inventory, the player won't see the container slot update (like a raw steak being cooked).
How to reproduce
- Open the furnace gui
- Place charcoal/coal and keep some item in your inventory
- Place something to be cooked into the furnace
- When the progress bar is almost at the end, start continuously left clicking an item in the inventory
What should happen is that the item to be cooked doesn't update (if it doesn't happen the first time, just retry), the progress bar has finished, and you won't have any item in the output slot, but if you click in it you will get the item cooked.
This also occurs with the /replaceitem command:
How to reproduce
- Put a command block on a clock, with a command such as:
/replaceitem entity @p inventory.0 golden_apple
→ This will put a golden apple in the first slot of your inventory
- Open your inventory, and move the golden apple to another slot
- As soon as a new one appears, grab it and move it to another slot as well
→ If you got the timing right, the slot will appear blank, even though the command block output in the chat window continues to say "[@: Replaced slot 9 with 1 x [Golden Apple]]" - Turn off the clock
- Exit the world
- Re-enter the world, and open your inventory
→ There will be a golden apple in the first slot
Why this happens:
This happen because there's a boolean in EntityPlayerMP that's set to true when the server receives a window click packet and then there the function that should send the slot updates is called, though if this boolean is true it will not send the packet to the client to update it (while the server-side thinks from the next update on that the client has received the update).
Basically if the server code updates the content of some slots in the container (raw food to be removed, output slot set to cooked food) while the player is moving other items in the inventory.. it won't get the update.
So one way to fix this would be to know which slot is getting modified by player and block the updates only for that slot and not all the container slots. Another way would be having a resend list where clients that didn't got a certain slot update, get a resend of the packet from the server.
- is duplicated by
-
MC-31492 Inventory glitches when /clear commands are running
- Resolved
-
MC-59176 replaceitem froze
- Resolved
-
MC-62516 /replaceitem does not work when hooked up to a fill clock, only when you re-log you get the replaced item
- Resolved
-
MC-77110 Command /replaceitem with commandblocks is bugged
- Resolved
-
MC-99295 /give the same tick as losing that item fails on creative mode
- Resolved
-
MC-100133 Ender Pearls, when thrown and immediately given back, become invisible in the inventory
- Resolved
-
MC-101303 Ghost Items
- Resolved
-
MC-102834 Replace items making ghost items
- Resolved
-
MC-104704 command block
- Resolved
-
MC-108322 Invisible, unusable item in inventory when given at same time item stack is emptied
- Resolved
-
MC-118307 Advancements/Functions Bug
- Resolved
-
MC-121400 Furnace item update broken
- Resolved
-
MC-133103 Strange /replaceitem command behavior
- Resolved
-
MC-134669 "Ghost" item glitch when you use an item and be given an identical item on the same tick
- Resolved
-
MC-135004 Shift-clicking items into and from a furnace inventory as an item finishes smelting doesn't update furnace interface
- Resolved
-
MC-136613 Grafical glitch when using command /replaceitem
- Resolved
-
MC-154052 Oven Item Bug (Or an loading bug)
- Resolved
-
MC-155047 "/data modify" doesn't work on the Inventory of Entity.
- Resolved
-
MC-155635 Temporary item dissapearance
- Resolved
-
MC-156644 Shift-clicking item from inventory to hot-bar while picking an item up either duplicates or deletes the item.
- Resolved
-
MC-157658 A small bug in /give
- Resolved
-
MC-160239 Quick shift-clicking on the output slot of the furnace causes the item to disappear visually
- Resolved
-
MC-165633 Loot give on some cases can give an invisible item
- Resolved
-
MC-166971 Armor stand held item
- Resolved
-
MC-168911 When you quickly shift click the output area of a furnace while something is cooking/smelting the item will go into your inventory, but you will not be able to see until you exit the furnace.
- Resolved
-
MC-172687 Rapidly shift clicking new items in furnaces doesnt update GUI
- Resolved
-
MC-173134 Furnace Gui bug
- Resolved
-
MC-182000 Shift-clicking furnace right as an item finished smelting broken
- Resolved
-
MC-183989 Rapidly shift clicking an item into a furnace while another item is cooking would create ghost items afterwards
- Resolved
-
MC-200670 Shift clicking items into hopper can create ghost items, and rarely duplicate them
- Resolved
-
MC-205542 Item Duplication Glitch 1.17 snapshot 20w46a
- Resolved
-
MC-211044 Precision- / spam- double-shift-clicking visual glitch in furnace and brewing stand GUIs
- Resolved
-
MC-217344 The item does not appear in the inventory
- Resolved
-
MC-222159 Ancient Debris Smelting Bug
- Resolved
-
MC-223126 If you spam click on the output of a furnance when the item is nearly cooked, there it will be a ghost item
- Resolved
-
MC-223628 Inventory bugs when /give-ing an item on the same tick as dropping one
- Resolved
-
MC-237754 Invisible items with give commands in some cases using functions
- Resolved
- relates to
-
MC-239935 Client-side desyncs can still occur when using the "/item" or "/give" commands repeatedly
- Open
-
MC-41113 /clear turns items held by mouse into ghost items
- Resolved
-
MC-86994 Fake map item by clearing filled_map from inventory
- Resolved