Mojira Archive
MC-113001

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

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.

Fixed

Marcono1234

2017-01-30, 01:59 AM

2018-10-31, 06:30 PM

2018-10-31, 06:30 PM

1

1

Confirmed

client-side, item, right-click, use-item

Minecraft 1.11.2, Minecraft 1.12.1, Minecraft 1.12.2

Minecraft 17w47a