fix: hard-cap doesn't work

This commit is contained in:
Jin_ou 2022-05-11 11:39:52 +08:00
parent 9c0a320eec
commit b128ebf1ee

View File

@ -462,7 +462,7 @@ public class ItemConversions extends PluginDependent<EcoPlugin> implements Liste
int i = 0; int i = 0;
for (Map.Entry<Enchantment, Integer> entry : enchants.entrySet()) { for (Map.Entry<Enchantment, Integer> entry : enchants.entrySet()) {
if (i >= this.getPlugin().getConfigYml().getInt("anvil.hard-cap.cap")) { if (i >= this.getPlugin().getConfigYml().getInt("anvil.hard-cap.cap")) {
return; break;
} }
Enchantment enchantment = entry.getKey(); Enchantment enchantment = entry.getKey();