[MC-9817] When removing "Ghost Items" from the inventory, the number may be negative or zero Created: 15/Feb/13  Updated: 06/Mar/13  Resolved: 27/Feb/13

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Snapshot 13w07a, Snapshot 13w09a
Fix Version/s: Snapshot 13w09b

Type: Bug
Reporter: Kumasasa Assignee: [Mojang] Jeb (Jens Bergensten)
Resolution: Fixed Votes: 0
Labels: clear, inventory, negavite, number
Environment:

Win 7-64
Java 7U13


Attachments: PNG File 2013-02-15_06.50.46.png     File output-client.log    
Issue Links:
Bonfire Testing
discovered while testing MC-9813 "Pick Block" on certain items then sw... Resolved
CHK:
Confirmation Status: Confirmed
Game Mode: Survival

 Description   

While testing MC-9813 and trying to clear the ghost items from the inventory, the messages

2013-02-15 06:49:16 [CLIENT] [INFO] [CHAT] Inventar von Kumasasa geleert, -5 Gegenstände entfernt
2013-02-15 06:49:21 [CLIENT] [INFO] [CHAT] §cCould not clear the inventory of Kumasasa, no items to remove

were thrown (even there were all of the items removed)

Steps to reproduce:

  • Clear the inventory
  • Place a minecart in slot 1 of the hotbar
  • Pick Block that item and place in empy slot (repeat some times)
  • Switch to survival mode /gamemode 0.
  • Place some minecarts
  • Drop a minecart with Q
  • Walk over it (Inventory will be filled)
  • issue "/clear"

Generated at Sun Jan 12 12:22:20 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.