mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 11:24:11 +01:00
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 <lukas@wirsindwir.de>
This commit is contained in:
parent
85cc664060
commit
c46dd07f70
1 changed files with 3 additions and 3 deletions
|
@ -218,7 +218,7 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
|
||||||
if (blockEntityTag != null) {
|
if (blockEntityTag != null) {
|
||||||
switch (material) {
|
switch (material) {
|
||||||
case SHIELD:
|
case SHIELD:
|
||||||
blockEntityTag.putString("id", "banner");
|
blockEntityTag.putString("id", "minecraft:banner");
|
||||||
break;
|
break;
|
||||||
case SHULKER_BOX:
|
case SHULKER_BOX:
|
||||||
case WHITE_SHULKER_BOX:
|
case WHITE_SHULKER_BOX:
|
||||||
|
@ -237,11 +237,11 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
|
||||||
case GREEN_SHULKER_BOX:
|
case GREEN_SHULKER_BOX:
|
||||||
case RED_SHULKER_BOX:
|
case RED_SHULKER_BOX:
|
||||||
case BLACK_SHULKER_BOX:
|
case BLACK_SHULKER_BOX:
|
||||||
blockEntityTag.putString("id", "shulker_box");
|
blockEntityTag.putString("id", "minecraft:shulker_box");
|
||||||
break;
|
break;
|
||||||
case BEE_NEST:
|
case BEE_NEST:
|
||||||
case BEEHIVE:
|
case BEEHIVE:
|
||||||
blockEntityTag.putString("id", "beehive");
|
blockEntityTag.putString("id", "minecraft:beehive");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue