why am I this stupid

This commit is contained in:
alexcrea 2025-07-16 23:11:38 +02:00
parent 00adf05d2b
commit a8177c9aba
Signed by: alexcrea
GPG key ID: E346CD16413450E3

View file

@ -51,7 +51,7 @@ object EnchantmentUtil {
// Enchantment not yet in result list
if (!containsKey(enchantment)) {
// 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
this[enchantment] = cappedLevel