Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-2989

Non Horses using Horse Inventory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • None

      Non horses such as llamas are not using their appropriate Inventory object in things such as InventoryClickEvent

       

      This is because it is hard set to CraftInventoryHorse on line 24 in ContainerHorse

      This should be changed to 

      org.bukkit.inventory.Inventory inventory = ((org.bukkit.inventory.InventoryHolder) this.f.getBukkitEntity()).getInventory();

       

      So that the appropriate horse inventory is used.

            Unassigned Unassigned
            Aikar Daniel Ennis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: