mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-26 15:45:12 +01:00
Cleaned EnchantChecks
This commit is contained in:
parent
7da65be5d7
commit
8443a6add2
@ -306,13 +306,11 @@ public class EnchantChecks {
|
|||||||
return new HashMap<>();
|
return new HashMap<>();
|
||||||
}
|
}
|
||||||
|
|
||||||
List<ItemStack> armor = Arrays.asList(entity.getEquipment().getArmorContents());
|
|
||||||
|
|
||||||
Map<EcoEnchant, Integer> ecoEnchants = new HashMap<>();
|
Map<EcoEnchant, Integer> ecoEnchants = new HashMap<>();
|
||||||
|
|
||||||
armor.forEach((itemStack -> {
|
for (ItemStack itemStack : entity.getEquipment().getArmorContents()) {
|
||||||
ecoEnchants.putAll(EnchantChecks.getEnchantsOnItem(itemStack));
|
ecoEnchants.putAll(EnchantChecks.getEnchantsOnItem(itemStack));
|
||||||
}));
|
}
|
||||||
|
|
||||||
return ecoEnchants;
|
return ecoEnchants;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user