From c46dd07f70a891a8f2554478a2e6bb51c5895351 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Tue, 15 Mar 2022 07:30:53 +1100 Subject: [PATCH] SPIGOT-6963: CraftMetaBlockState#getBlockState applied TileEntity ids without the minecraft namespace prefix. This was able to cause issues when ItemStacks are being compared. By: blablubbabc --- .../bukkit/craftbukkit/inventory/CraftMetaBlockState.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBlockState.java b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBlockState.java index b78b4ba1fc..feab6de417 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBlockState.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBlockState.java @@ -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; } }