mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 16:16:17 +02:00
v1.8.3 Fix Excellent Enchant issue
This commit is contained in:
parent
fa6ea6747e
commit
904bdc4868
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue