SPIGOT-6963: CraftMetaBlockState#getBlockState applied TileEntity ids without the minecraft namespace prefix.

This was able to cause issues when ItemStacks are being compared.
This commit is contained in:
blablubbabc 2022-03-15 07:30:53 +11:00 committed by md_5
parent 9ed7e4fbe4
commit 2c47af0cb0
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -218,7 +218,7 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
if (blockEntityTag != null) {
switch (material) {
case SHIELD:
blockEntityTag.putString("id", "banner");
blockEntityTag.putString("id", "minecraft:banner");
break;
case SHULKER_BOX:
case WHITE_SHULKER_BOX:
@ -237,11 +237,11 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
case GREEN_SHULKER_BOX:
case RED_SHULKER_BOX:
case BLACK_SHULKER_BOX:
blockEntityTag.putString("id", "shulker_box");
blockEntityTag.putString("id", "minecraft:shulker_box");
break;
case BEE_NEST:
case BEEHIVE:
blockEntityTag.putString("id", "beehive");
blockEntityTag.putString("id", "minecraft:beehive");
break;
}
}