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

Tipped_Arrow can't merge when pick up

XMLWordPrintable

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

      windows 10

      Minecraft1.13

    • 1.13
    • Yes

      Today,I create a Tipped_Arrow itemstack through my plugin. I shot it on the ground. When I pick up, the tipped arrow can't merge. Here is itemstack's infomation.

      //代码占位符
      xxoo:
        ==: org.bukkit.inventory.ItemStack
        v: 1519
        type: TIPPED_ARROW
        amount: 6
        meta:
          ==: ItemMeta
          meta-type: POTION
          potion-type: minecraft:water
          custom-effects:
          - ==: PotionEffect
            effect: 2
            duration: 1500
            amplifier: 1
            ambient: true
            has-particles: true
      xxoo:
        ==: org.bukkit.inventory.ItemStack
        v: 1519
        type: TIPPED_ARROW
        amount: 2
        meta:
          ==: ItemMeta
          meta-type: POTION
          potion-type: minecraft:water
          custom-effects:
          - ==: PotionEffect
            effect: 2
            duration: 1500
            amplifier: 1
            ambient: true
            has-particles: true
      

      Here are screen shoots.

       

       

      I added gif of my test

      and the create itemstack's codes

       

      //代码占位符
       ItemStack it=new ItemStack(Material.TIPPED_ARROW);
       ItemStack it=new ItemStack(Material.TIPPED_ARROW);
       PotionMeta potion =(PotionMeta) it.getItemMeta();
       potion.setBasePotionData(new PotionData(PotionType.WATER));
       potion.addCustomEffect(PotionEffectType.SLOW.createEffect(1200, 0),true);
       it.setItemMeta(potion);
      

       Trough the gif. The client thinks they are the same but the server thinks they are different.

       

        1. GIF.gif
          5.79 MB
          Cloud_Shadow

            Unassigned Unassigned
            Cloud_Shadow Cloud_Shadow
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: