Client crash on DropItemEvent

Discussion in 'Plugin Development' started by FurmigaHumana, Jun 22, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    FurmigaHumana

    Code:
      @EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = false)
        public void onPlayerDropItem(PlayerDropItemEvent e) {
            e.getItemDrop().remove(); //Or e.setCancelled(true);
        }
    If a creative player [not tested with survival] try to drag and drop a item from the inventory window, the game will crash [Console: End of Stream]. I don't see any chance to have something wrong with that code, is a bukkit issue?

    Edit: Bukkit 1.2.5-R4.0
     
Thread Status:
Not open for further replies.

Share This Page