InventoryClickEvent Item Duplication

XMLWordPrintable

    • Type: Bug
    • Resolution: Invalid
    • Priority: Minor
    • None
    • Affects Version/s: None
    • Environment:

      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

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

              Created:
              Updated:
              Resolved: