Expected behavior
I expect InventoryDragEvent being called, as it does with other game modes
Observed/Actual behavior
When in creative, instead of calling InventoryDragEvent at the end of the drag as usual, one InventoryClickEvent is fired per slot dragged into
Steps/models to reproduce
public class DragIssuePlugin extends JavaPlugin implements Listener {
@Override
public void onEnable() {
getServer().getPluginManager().registerEvents(this, this);
}
@EventHandler
public void onInventoryClick(InventoryClickEvent e){
e.getWhoClicked().sendMessage("CLICK");
}
@EventHandler
public void onInventoryDrag(InventoryDragEvent e){
e.getWhoClicked().sendMessage("DRAG");
}
}
Plugin and Datapack List
None except the one mentioned above
Paper version
This server is running Paper version git-Paper-464 (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: e709245)
You are running the latest version
Previous version: git-Paper-"00fd87a" (MC: 1.20.4)
Other
This issue is likely related to #10377, as both are issues with InventoryClickEvent in creative
Expected behavior
I expect
InventoryDragEventbeing called, as it does with other game modesObserved/Actual behavior
When in creative, instead of calling
InventoryDragEventat the end of the drag as usual, oneInventoryClickEventis fired per slot dragged intoSteps/models to reproduce
Plugin and Datapack List
None except the one mentioned above
Paper version
Other
This issue is likely related to #10377, as both are issues with InventoryClickEvent in creative