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

ItemStack durability is now item data???

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Minor Minor
    • None
    • None
    • None
    • Spigot 1.8.X

      I was looking for not-deprecated way to apply itemstack data for long time and found bug. When you actually trying to change durability now, it changes itemstack data instead. Ex:

      ItemStack item = new ItemStack( Material.INK_SACK, 1 );
      item.setDurability( (byte)13 );
      (This will be pink dye.)

      And i tried to apply item data like this, but it didn't worked too(got default item):
      ItemStack item = new ItemStack( Material.INK_SACK, 1 );
      Dye dye = new Dye();
      dye.setColor( DyeColor.GREEN );
      item.setData( dye );

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

              Created:
              Updated:
              Resolved: