Remove unnecessary empty itemstack checks, see comments on d0fda72
This commit is contained in:
@@ -232,7 +232,7 @@ public class ItemWizardArmour extends ItemArmor implements ISpecialArmor {
|
||||
EntityPlayer player = (EntityPlayer)event.getEntityLiving();
|
||||
|
||||
for(ItemStack stack : player.getArmorInventoryList()){
|
||||
if(stack.isEmpty() || !(stack.getItem() instanceof ItemWizardArmour)){
|
||||
if(!(stack.getItem() instanceof ItemWizardArmour)){
|
||||
return; // If any of the armour slots doesn't contain wizard armour, don't trigger the achievement.
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user