Skip to content

Commit

Permalink
v1.8.3 Fix Excellent Enchant issue
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrea committed Mar 4, 2025
1 parent fa6ea67 commit 904bdc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ plugins {
}

group = "xyz.alexcrea"
version = "1.8.2"
version = "1.8.3"

repositories {
// EcoEnchants
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class ExcellentEnchantsDependency {
CustomAnvil.instance.logger.info("Excellent Enchants should now work as expected !")
}

private lateinit var fragilityCurse: CurseOfFragilityEnchant
private var fragilityCurse: CurseOfFragilityEnchant? = null

private var modernAnvilListener: AnvilListener? = null
private var legacyAnvilListener: EnchantAnvilListener? = null
Expand Down Expand Up @@ -119,7 +119,7 @@ class ExcellentEnchantsDependency {

fun testPrepareAnvil(event: PrepareAnvilEvent): Boolean {
if (event.result != null) {
this.fragilityCurse.onItemAnvil(event)
this.fragilityCurse?.onItemAnvil(event)
if (event.result == null) return true
}

Expand Down

0 comments on commit 904bdc4

Please sign in to comment.