[SPIGOT-1874] Shield ItemMeta serializes to Tile Entity Created: 10/Mar/16  Updated: 11/Dec/17  Resolved: 11/Mar/16

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

Type: Bug Priority: Minor
Reporter: Nathan Wolf Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: 1.9
Environment:

Spigot 1.9, Mac OS



 Description   

When serializing a shield ItemStack, the meta data looks odd. It has "meta-type: TILE_ENTITY" and the banner data is stored in the "internal" data blob, rather than using BannerMeta.

Comparison, banner vs shield: http://hastebin.com/efesizusev.hs

They deserialize properly so this isn't causing any issues, I just thought it looked odd and wanted to point it out in case it is a symptom of hidden problems with shields and BannerMeta.



 Comments   
Comment by Nathan Wolf [ 11/Mar/16 ]

Oooh. Lol, well I suppose that makes "sense". Thanks for the explanation!

Comment by Black Hole [ 11/Mar/16 ]

Blame Mojang. They decided to encode patterns of a shield like a banner placed in the world and not like a banner item.

Generated at Fri Apr 11 15:51:07 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.