mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-22 15:05:18 +01:00
fix: hard-cap doesn't work
This commit is contained in:
parent
9c0a320eec
commit
b128ebf1ee
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user