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

getType returns AIR with all new 1.15 items

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Minor Minor
    • None
    • None
    • git-Spigot-f39a89e-f777640 (MC: 1.15) (Implementing API version 1.15-R0.1-SNAPSHOT)
    • Yes

      When you use getType with any of the new 1.15 items, it returns AIR instead of the real item Material.

       

      Here I attach a plugin I made so you can test it with PlayerInteractEvent (just interact with any new item). Basicly my plugin sends the player who interacts a message with e.getItem.toString and e.getItem.getType.toString. When you use getItem, your message sent says it is a HONEY_COMB (for example), but when you getType of it it says it is AIR. (If you see the screenshots you will understand it better)

       

      Source code: https://pastebin.com/9xaWLurR

        1. 2019-12-11_15.14.46.png
          2019-12-11_15.14.46.png
          1.87 MB
        2. 2019-12-11_15.14.57.png
          2019-12-11_15.14.57.png
          1.99 MB
        3. 2019-12-11_15.15.08.png
          2019-12-11_15.15.08.png
          1.71 MB
        4. SpigotReportPlugin2.0.jar
          2 kB

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

              Created:
              Updated:
              Resolved: