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

If statement in Pillager Entity is never true

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.14.3, Minecraft 1.14.4 Pre-Release 5, Minecraft 1.14.4 Pre-Release 6, 1.15 Pre-release 6
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Minecraft Forge development environment
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      All names are referencing MCP mappings.
      In the class Pillager Entity the updateEquipmentIfNeeded method checks if the item is an instanceof BannerItem, else it then checks if via func_213672_b is a Items.WHITE_BANNER which is an instanceof BannerItem, but due to the initial if statement it would prevent the statement from ever being true.

      Mojang names are:

      • Pillager.pickUpItem(ItemEntity): Which already checks instanceof BannerItem
      • Pillager.wantsItem(Item): Which checks for the white banner

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            lclc98 lclc98
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              CHK: