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

Horses do not display saddle/armor when setContents() is called

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • None
    • None
    • CentOS 7

      Calling the following to set an inventory for a horse puts a saddle and armor in its inventory but it is not visibly shown on the client:

      entity.getInventory().setContents(inventory.toItemStack());
      

      I have to explicitly set the saddle and the armor for it to update on the client:

      entity.getInventory().setSaddle(entity.getInventory().getSaddle());
      entity.getInventory().setArmor(entity.getInventory().getArmor());
      

            Unassigned Unassigned
            Zhro Matt D.
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: