mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 08:14:00 +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
|
|
@ -16,7 +16,7 @@ plugins {
|
|||
}
|
||||
|
||||
group = "xyz.alexcrea"
|
||||
version = "1.8.2"
|
||||
version = "1.8.3"
|
||||
|
||||
repositories {
|
||||
// EcoEnchants
|
||||
|
|
|
|||
|
|
@ -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