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
Join a server
Set your gamemode to survival
Have another player join the server
Start drawing back your bow with the first player
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.
Linked issues
discovered while testing 1
is blocked by 1
Comments 4
Is this still a issue in the latest version of the game(currently 1.13.1)?
If so, please add it to the affected versions, thanks!
This report is currently missing crucial information. Please take a look at the other comments to find out what we are looking for.
If you added the required information and a moderator sees your comment, they will reopen and update the report. However, if you think your update to this report has been overlooked or you want to make sure that this report is reopened, you can contact the Mojira staff on Discord or Reddit.
-- I am a bot. This action was performed automatically! Please report any issues on Discord or Reddit
Is this still an issue in the most recent versions (currently that is 1.12.2, or the latest 1.13 development snapshot 18w20c) of Minecraft? If so, please update the affected versions and help us keeping this ticket updated from time to time. If you are the owner/reporter of this ticket, you can modify the affected version(s) yourself.