[SPIGOT-3108] AssertionError: TRAP in setting Count of an ItemStack Created: 07/Mar/17  Updated: 08/Mar/17  Resolved: 08/Mar/17

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Superhirn7 Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: 1.11, Spigot, error
Environment:

CraftBukkit version git-Spigot-d4f98a3-cb61ac0 (MC: 1.11.2)



 Description   

 

@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 )

 

 


Generated at Fri Apr 11 15:29:57 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.