Cleaned EnchantChecks

This commit is contained in:
Auxilor 2021-04-13 18:25:01 +01:00
parent 7da65be5d7
commit 8443a6add2

View File

@ -306,13 +306,11 @@ public class EnchantChecks {
return new HashMap<>();
}
List<ItemStack> armor = Arrays.asList(entity.getEquipment().getArmorContents());
Map<EcoEnchant, Integer> ecoEnchants = new HashMap<>();
armor.forEach((itemStack -> {
for (ItemStack itemStack : entity.getEquipment().getArmorContents()) {
ecoEnchants.putAll(EnchantChecks.getEnchantsOnItem(itemStack));
}));
}
return ecoEnchants;
}