AssertionError: TRAP in setting Count of an ItemStack

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None
    • Environment:

      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 )

       

       

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

              Created:
              Updated:
              Resolved: