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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Cannot Reproduce
    • Affects Version/s: Minecraft 16w50a, Minecraft 1.12.2, Minecraft 1.13-pre7, Minecraft 1.13.1
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Game Mode:
      Creative
    • Category:
      (Unassigned)

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              CHK: