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

CompassItem checks twice if LodestonePos tag exists

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 20w15a
    • 20w13b
    • None
    • Plausible
    • Items
    • Low

      The bug

      20w13b, Mojang names

      The method net.minecraft.world.item.CompassItem.getLodestonePosition(Level, CompoundTag) checks twice if the item compound tag has a LodestonePos tag. One of these should probably be a check for the LodestoneDimension tag.
      However, that check is not needed because the called method CompassItem.getLodestoneDimension does not fail if the tag does not exist.

            slicedlime [Mojang] slicedlime
            marcono1234 Marcono1234
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: