mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 16:16:17 +02:00
fix me being stupid
used wrong class
This commit is contained in:
parent
e6ff0a5e5f
commit
092daa9306
2 changed files with 3 additions and 2 deletions
|
|
@ -18,7 +18,7 @@ plugins {
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "xyz.alexcrea"
|
group = "xyz.alexcrea"
|
||||||
version = "1.14.1"
|
version = "1.14.2"
|
||||||
|
|
||||||
val effectiveVersion = "$version" +
|
val effectiveVersion = "$version" +
|
||||||
(if (System.getenv("SMALL_COMMIT_HASH") != null) "-dev-${System.getenv("SMALL_COMMIT_HASH")!!}" else "")
|
(if (System.getenv("SMALL_COMMIT_HASH") != null) "-dev-${System.getenv("SMALL_COMMIT_HASH")!!}" else "")
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ import com.jankominek.disenchantment.events.DisenchantClickEvent
|
||||||
import com.jankominek.disenchantment.events.DisenchantEvent
|
import com.jankominek.disenchantment.events.DisenchantEvent
|
||||||
import com.jankominek.disenchantment.events.ShatterClickEvent
|
import com.jankominek.disenchantment.events.ShatterClickEvent
|
||||||
import com.jankominek.disenchantment.events.ShatterEvent
|
import com.jankominek.disenchantment.events.ShatterEvent
|
||||||
|
import com.jankominek.disenchantment.listeners.DisenchantClickListener
|
||||||
import com.jankominek.disenchantment.listeners.ShatterClickListener
|
import com.jankominek.disenchantment.listeners.ShatterClickListener
|
||||||
import io.delilaheve.CustomAnvil
|
import io.delilaheve.CustomAnvil
|
||||||
import org.bukkit.entity.HumanEntity
|
import org.bukkit.entity.HumanEntity
|
||||||
|
|
@ -31,7 +32,7 @@ class DisenchantmentDependency {
|
||||||
// This is to avoid the disenchantment gui breaking
|
// This is to avoid the disenchantment gui breaking
|
||||||
try {
|
try {
|
||||||
unregisterStaticDisenchantmentListener(ShatterClickListener::class)
|
unregisterStaticDisenchantmentListener(ShatterClickListener::class)
|
||||||
unregisterStaticDisenchantmentListener(InventoryClickEvent::class)
|
unregisterStaticDisenchantmentListener(DisenchantClickListener::class)
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
CustomAnvil.instance.logger.log(
|
CustomAnvil.instance.logger.log(
|
||||||
Level.SEVERE, "Could not initialize disenchantment support" +
|
Level.SEVERE, "Could not initialize disenchantment support" +
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue