mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01:00
SPIGOT-6615 Fix Glow Item Frame to use EntityTagMeta
By: Doc <nachito94@msn.com>
This commit is contained in:
parent
5e5d47856a
commit
fec9294c47
4 changed files with 4 additions and 1 deletions
|
@ -22,6 +22,6 @@ public class CraftGlowItemFrame extends CraftItemFrame implements GlowItemFrame
|
|||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "CraftGlowItemFrame";
|
||||
return "CraftGlowItemFrame{item=" + getItem() + ", rotation=" + getRotation() + "}";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -264,6 +264,7 @@ public final class CraftItemFactory implements ItemFactory {
|
|||
case PUFFERFISH_BUCKET:
|
||||
case SALMON_BUCKET:
|
||||
case ITEM_FRAME:
|
||||
case GLOW_ITEM_FRAME:
|
||||
case PAINTING:
|
||||
return meta instanceof CraftMetaEntityTag ? meta : new CraftMetaEntityTag(meta);
|
||||
case COMPASS:
|
||||
|
|
|
@ -533,6 +533,7 @@ public final class CraftItemStack extends ItemStack {
|
|||
case PUFFERFISH_BUCKET:
|
||||
case SALMON_BUCKET:
|
||||
case ITEM_FRAME:
|
||||
case GLOW_ITEM_FRAME:
|
||||
case PAINTING:
|
||||
return new CraftMetaEntityTag(item.getTag());
|
||||
case COMPASS:
|
||||
|
|
|
@ -69,6 +69,7 @@ public class CraftMetaEntityTag extends CraftMetaItem {
|
|||
case PUFFERFISH_BUCKET:
|
||||
case SALMON_BUCKET:
|
||||
case ITEM_FRAME:
|
||||
case GLOW_ITEM_FRAME:
|
||||
case PAINTING:
|
||||
return true;
|
||||
default:
|
||||
|
|
Loading…
Add table
Reference in a new issue