Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-6963

CraftMetaBlockState#getBlockState sets outdated TileEntity ids in the item meta's blockEntityTag

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • This server is running CraftBukkit version dev-Spigot-ffceeae-9ed7e4f (MC: 1.18.2) (Implementing API version 1.18.2-R0.1-SNAPSHOT)
    • Yes

      https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/browse/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBlockState.java#240

      This code is from 2016 and was probably missing some update to use TileEntity ids with the `minecraft:` namespace prefix.

      The bug can for example be triggered by a plugin calling `getBlockState` on the ItemMeta of a shulker box item with stored block state.

      One effect of this bug is for example that two ItemStack, for example one with the usual `minecraft:shulker_box` and the other with the modified `shulker_box` id, are not considered equal.

            blablubbabc blablubbabc
            blablubbabc blablubbabc
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: