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

InventoryClickEvent Item Duplication

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Minor Minor
    • None
    • None
    • 1.11 Spigot.

    • All plugins that cancel InventoryClickEvent

      When clicking on an item in creative when the InventoryClickEvent is cancelled then it duplicates the item. I found this only happens on 1.11. Here is the code I used in the plugin:

          @EventHandler
          public void onInvClick(InventoryClickEvent e) {
              if(e.getCurrentItem().equals(com()) || e.getCurrentItem().equals(bow()) || e.getCurrentItem().equals(arrow())){
                  e.setCancelled(true);
              }
          }
      
      
      
      
      

      When the duplication happens I get this error: http://pastebin.com/ex687HR5

      Here is a GIF of it happening: http://imgur.com/a/nvAu3

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

              Created:
              Updated:
              Resolved: