Could you not just wrap your attss.put method in a if statement ?
e.g.
if(slot == EquipmentSlotType.MAINHAND) {
// DO your attss.put code here.
}
or even add it to your current if statement
if (stack.hasTag() && slot == EquipmentSlotType.MAINHAND){
// Do Code
}
1
point
Important Information
By using this site, you agree to our Terms of Use.