Merge pull request #216

fix: hard-cap doesn't work
This commit is contained in:
Will FP 2022-05-12 17:02:04 +01:00 committed by GitHub
commit 34553f60eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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