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

Some items act client-side always as if they were successfully used

XMLWordPrintable

    • Confirmed

      The bug

      Some items act client-side always like they were successfully used even though they were not.

      Affected items

      Last updated for 1.11.2

      • bed
      • fire_charge
      • spawn_egg

      How to reproduce

      1. Try to use one of the items above at a place where they cannot be used
        → You will notice that your arm swings and if you have another item with right click ability in your offhand, it won't be used.

      As of 1.11.2 this bug can be reproduced with all items above when trying to use them in Adventure mode.

      Code analysis

      Based on 1.11.2 decompiled using MCP 9.35 rc1

      The affected items implement the method net.minecraft.item.Item.onItemUse(EntityPlayer, World, BlockPos, EnumHand, EnumFacing, float, float, float) in a way that it always returns EnumActionResult.SUCCESS client-side.

            Unassigned Unassigned
            marcono1234 Marcono1234
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: