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

InvnetoryClickEvent not called sometime on drag.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Minor Minor
    • None
    • None
    • Server:
      Spigot 1.12.1 / BuildTools #64
       
      Client:
      Minecraft 1.12.1

      Plugin:
      Java

    • DragTestJava

      When we drag item from chest to player inventory, sometime InventoryClickEvent isn't called.

      Screen Record: https://youtu.be/FyEZIV59QUU

      On this movie, event isn't triggered on 1st&8th drag.

      package red.man10.dragtestjava;
      
      import org.bukkit.Bukkit;
      import org.bukkit.command.Command;
      import org.bukkit.command.CommandSender;
      import org.bukkit.entity.Player;
      import org.bukkit.event.*;
      import org.bukkit.event.inventory.InventoryClickEvent;
      import org.bukkit.event.inventory.InventoryEvent;
      import org.bukkit.event.inventory.InventoryMoveItemEvent;
      import org.bukkit.plugin.RegisteredListener;
      import org.bukkit.plugin.java.JavaPlugin;
      
      public final class DragTestJava extends JavaPlugin implements Listener{
      
          @Override
          public void onEnable() {
              // Plugin startup logic
              Bukkit.getPluginManager().registerEvents(this,this);
          }
      
          @Override
          public void onDisable() {
              // Plugin shutdown logic
          }
      
          @EventHandler
          public void onInvClick(InventoryClickEvent e) {
              Bukkit.broadcastMessage("Inv Clicked");
          }
      }
      

      I tried on different server, but it was same so I think it's a bug of spigot.. I tried on 1.12.2 too.

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

              Created:
              Updated:
              Resolved: