[SPIGOT-932] Setting Armor Produces Strange Phantom Armor in an Inventory Created: 27/May/15  Updated: 28/May/15  Resolved: 28/May/15

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Michael Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: armor, bug, inventory
Environment:

Windows 7, running Java 8

Client is running Minecraft 1.8.6


Attachments: PNG File j1wyG6B.png    

 Description   

When a player has an inventory open, and a plugin sets the player's armor, those pieces of armor appear in the top right slots of the inventory they have open. For example, if a player has a chest open, and I set their armor via setArmorContents() or setBoots(), setChestplate(), etc. that armor appears in the chest.

I am pretty sure the items are not actually there, as they do not drop when a player tries to drop them, and they also disappear when the player logs out and logs back in.

I have attached a screenshot of this to this issue report. Here is the code I'm using that caused what you can see in the screenshot: http://pastebin.com/7D7v1sP7. This code is setting the player's armor (boots) every second from a random array of colored leather boots. The line that sets the player's chestplate to a diamond chestplate was added for debug purposes.

I should also note that this glitch does not appear in 1.8.3 or 1.8.4.

Thanks for your help.



 Comments   
Comment by Michael [ 28/May/15 ]

Alright, well I hope md_5 sees this or your new pull request very soon because this bug is becoming very annoying with a lot of inventory interaction going on alongside armor modification.

Comment by DemonWav [ 28/May/15 ]

It really shouldn't take that long. I'll speak with md_5 if I see him and let him know.

Comment by Conner [ 28/May/15 ]

Once the PR is approved it will be available in Stash for BuildTools to compile it again, this can take up to a few week's

Comment by Michael [ 27/May/15 ]

Any idea on whet it will be fixed?

Comment by DemonWav [ 27/May/15 ]

I apologize for this, this is my mistake. A recent PR I submitted fixed invisible items, but I accidentally made it send packets to the active container rather than the default container. I have submitted a new PR that just changes the container to default and it fixes this issue.

Generated at Sat Dec 13 13:37:59 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.