Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-49019

Partial NBT data matching breaks checking for empty containers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 14w07a
    • Fix Version/s: Minecraft 14w08a
    • Labels:
      None
    • Environment:
      Ubuntu 13.10 64bit
      Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
    • Confirmation Status:
      Unconfirmed

      Description

      The newly added support for partial matches of NBT data breaks commands that check for empty containers.

      Steps to reproduce:

      1. Place a container with any item in it, .e.g. with

      /setblock ~1 ~ ~ chest 3 replace {Items:[0:{Slot:0b,id:"minecraft:dirt",Damage:0s,Count:1b}]}

      2. Check whether the container is empty, e.g. with

      /testforblock ~1 ~ ~ chest 3 {Items:[]}

      3. The second command returns "Successfully found the block..." despite the container being empty due to the partial matching.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            veubeke Rebecca K├Ânig
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: