SPIGOT-6615 Fix Glow Item Frame to use EntityTagMeta

This commit is contained in:
Doc 2021-07-03 09:33:04 +10:00 committed by md_5
parent b069f22026
commit 7aa02e3a31
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11
4 changed files with 4 additions and 1 deletions

View File

@ -22,6 +22,6 @@ public class CraftGlowItemFrame extends CraftItemFrame implements GlowItemFrame
@Override @Override
public String toString() { public String toString() {
return "CraftGlowItemFrame"; return "CraftGlowItemFrame{item=" + getItem() + ", rotation=" + getRotation() + "}";
} }
} }

View File

@ -264,6 +264,7 @@ public final class CraftItemFactory implements ItemFactory {
case PUFFERFISH_BUCKET: case PUFFERFISH_BUCKET:
case SALMON_BUCKET: case SALMON_BUCKET:
case ITEM_FRAME: case ITEM_FRAME:
case GLOW_ITEM_FRAME:
case PAINTING: case PAINTING:
return meta instanceof CraftMetaEntityTag ? meta : new CraftMetaEntityTag(meta); return meta instanceof CraftMetaEntityTag ? meta : new CraftMetaEntityTag(meta);
case COMPASS: case COMPASS:

View File

@ -533,6 +533,7 @@ public final class CraftItemStack extends ItemStack {
case PUFFERFISH_BUCKET: case PUFFERFISH_BUCKET:
case SALMON_BUCKET: case SALMON_BUCKET:
case ITEM_FRAME: case ITEM_FRAME:
case GLOW_ITEM_FRAME:
case PAINTING: case PAINTING:
return new CraftMetaEntityTag(item.getTag()); return new CraftMetaEntityTag(item.getTag());
case COMPASS: case COMPASS:

View File

@ -69,6 +69,7 @@ public class CraftMetaEntityTag extends CraftMetaItem {
case PUFFERFISH_BUCKET: case PUFFERFISH_BUCKET:
case SALMON_BUCKET: case SALMON_BUCKET:
case ITEM_FRAME: case ITEM_FRAME:
case GLOW_ITEM_FRAME:
case PAINTING: case PAINTING:
return true; return true;
default: default: