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

AssertionError: TRAP in setting Count of an ItemStack

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • CraftBukkit version git-Spigot-d4f98a3-cb61ac0 (MC: 1.11.2)

       

      @EventHandler
      void onClick(InventoryClickEvent e) {
      e.getCurrentItem().setAmount(e.getCurrentItem().getAmount()+1);
      }
      

      this code is throwing  an Error

      (Hope its not a problem of the code, but its look like legit code )

       

       

            Unassigned Unassigned
            Superhirn7 Superhirn7
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: