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

Horses with chests crash the game when putting items into their inventory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 1.8.1
    • None
    • Operating System: Windows 8.1
      Java: 8.0.250
    • Unconfirmed

      If a horse (not a donkey or a mule) is spawned with a chest (using commands), then if a player tries to put items into the horse's inventory, their game will crash.

      What I expected to happen was...:
      I expected a chested horse's inventory to work like one of a donkey or a mule with a chest equipped, that is, when an item is put into a slot, it does not result in crashing the game, and the item is stored in the horse's inventory.

      What actually happened was...:
      As soon as the player managing the horse's inventory clicks on a slot while having an item in their cursor, that is 'dragging' the item, the game crashes, sending a report with an 'Updating screen events' description, and a 'java.lang.ArrayIndexOutOfBoundsException: 8' issue.

      Steps to Reproduce:
      1. Summon a horse with /summon EntityHorse ~ ~ ~

      {ChestedHorse:1,Tame:1}

      2. Right click on the horse
      3. Click on an item in your inventory, then move the cursor over and click on a slot in the horse's inventory.

            Unassigned Unassigned
            iPenguin54 Alex Didenkov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: