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

Starting using items with MaxItemUseDuration higher than 0 creates "item.armor.equip_generic" sound

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • Minecraft 1.9
    • Unconfirmed

      The bug

      When you start using items that have a MaxItemUseDuration the sound "item.armor.equip_generic" is played.

      Affected items (1.9)

      • bow
      • milk bucket
      • food
      • drinkable potion
      • shield

      These items can be found by searching in the decompiled version for classes overwriting the net.minecraft.item.Item.getMaxItemUseDuration(ItemStack) method and returning a value greater than 0.

      How to reproduce

      1. Join a server
      2. Set your gamemode to survival
      3. Have another player join the server
      4. Start drawing back your bow with the first player
      5. The second player will hear "item.armor.equip_generic"

      The reason

      The following is based on decompiled version of Minecraft 1.9 using MCP 9.24 beta. All method and class names are the names used in the decompiled version.

      The reason is very likely that the method net.minecraft.server.management.PlayerInteractionManager.func_187250_a(EntityPlayer, World, ItemStack, EnumHand) acts for items with a MaxItemUseDuration greater than 0 as if the item changed.

            Unassigned Unassigned
            marcono1234 [Mod] Marcono1234
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: