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

Skeletons are far to attached to their bows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • None
    • None
    • Centos 6 and Windows 7
      Java 8 U66
      Spigot 1.8.8 (git-Spigot-db6de12-d3e0b6f)

      This seems to have been a "feature" for quite some time but skeletons seem way to attached to their bows.

      When spawning a skeleton and setting the item in the hand to AIR it will still show the bow.

      Skeleton sirSkeletingtons = (Skeleton)entity.getWorld().spawnEntity(entity.getLocation(), EntityType.SKELETON);
      EntityEquipment sirSkeletingtonsInventory = sirSkeletingtons.getEquipment();
      sirSkeletingtonsInventory.setItemInHand(new ItemStack(Material.AIR));
      

      Even clearing the EntityEquipment seems not to work.

      Skeleton sirSkeletingtons = (Skeleton)entity.getWorld().spawnEntity(entity.getLocation(), EntityType.SKELETON);
      sirSkeletingtons.getEquipment().clear();
      

      Thanks.

            Unassigned Unassigned
            Chalkie Chalkie
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: