[SPIGOT-2816] InventoryClickEvent Item Duplication Created: 21/Nov/16  Updated: 21/Nov/16  Resolved: 21/Nov/16

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Ryandw11 Assignee: Unassigned
Resolution: Invalid Votes: 0
Labels: 1.11
Environment:

1.11 Spigot.


Plugin: All plugins that cancel InventoryClickEvent

 Description   

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



 Comments   
Comment by md_5 [ 21/Nov/16 ]

Client controls creative. Nothing we can do.

Generated at Thu Apr 03 15:54:56 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.