Mojira Archive
MC-111629

Count of empty maps is reduced for a short moment when creative player uses one

The bug

When a player in creative mode uses an empty map the item count is reduced for a short moment.

Code analysis

Based on 1.11 decompiled using MCP 9.35 rc1

The problem is that the method net.minecraft.item.ItemEmptyMap.onItemRightClick(World, EntityPlayer, EnumHand) is always reducing the item count. This causes a single empty map to be replaced with the filled map as well.
Additionally the client-side method net.minecraft.client.multiplayer.PlayerControllerMP.processRightClick(EntityPlayer, World, EnumHand) should be changed to reset the damage and the count just like the server-side net.minecraft.server.management.PlayerInteractionManager.processRightClick(EntityPlayer, World, ItemStack, EnumHand) does.

Cannot Reproduce

Marcono1234

2016-12-20, 10:29 AM

2020-11-30, 04:39 PM

2020-11-30, 04:39 PM

2

3

Confirmed

(Unassigned)

count, item, map, right-click

Minecraft 16w50a, Minecraft 1.12.2, Minecraft 1.13-pre7, Minecraft 1.13.1

-