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

retrieve map (filled) is giving an empty map

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Minor Minor
    • None
    • None
    • CraftBukkit version git-Spigot-69774b3-671581e (MC: 1.13) (Implementing API version 1.13-R0.1-SNAPSHOT)
    • Yes

      When I try to give me a map created before with this code:

       

       

      private void giveMap(Player player, int number)
      {     
          ItemStack myMap= new ItemStack(Material.MAP, 1);
          myMap.setDurability((short)    (number) );     
          player.getInventory().addItem(myMap); 
      }
      

       

       

      so I use:

      /giveMap 5

      /giveMap 6

      /giveMap 7

      /giveMap 8

      but is always giving an empty map

      I used this exact code in 1.9.4 and it works

            Unassigned Unassigned
            cdiego Carlos Diego
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: