mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-12-24 20:07:34 +01:00
Cleaned EnchantChecks
This commit is contained in:
parent
7da65be5d7
commit
8443a6add2
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user