mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 16:16:17 +02:00
why am I this stupid
This commit is contained in:
parent
00adf05d2b
commit
a8177c9aba
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ object EnchantmentUtil {
|
||||||
// Enchantment not yet in result list
|
// Enchantment not yet in result list
|
||||||
if (!containsKey(enchantment)) {
|
if (!containsKey(enchantment)) {
|
||||||
// Do not allow new enchantment if above maximum
|
// Do not allow new enchantment if above maximum
|
||||||
if(this.size <= maxEnchantCount) return@forEach
|
if(this.size >= maxEnchantCount) return@forEach
|
||||||
|
|
||||||
// Add the enchantment if it doesn't have conflicts, or if player is allowed to bypass enchantment restrictions
|
// Add the enchantment if it doesn't have conflicts, or if player is allowed to bypass enchantment restrictions
|
||||||
this[enchantment] = cappedLevel
|
this[enchantment] = cappedLevel
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue