diff --git a/eco-core/core-backend/src/main/kotlin/com/willfp/eco/internal/config/updating/EcoConfigHandler.kt b/eco-core/core-backend/src/main/kotlin/com/willfp/eco/internal/config/updating/EcoConfigHandler.kt index 6a24a97b..a03bb795 100644 --- a/eco-core/core-backend/src/main/kotlin/com/willfp/eco/internal/config/updating/EcoConfigHandler.kt +++ b/eco-core/core-backend/src/main/kotlin/com/willfp/eco/internal/config/updating/EcoConfigHandler.kt @@ -10,7 +10,7 @@ import com.willfp.eco.internal.config.updating.exceptions.InvalidUpdateMethodExc import com.willfp.eco.internal.config.yaml.EcoLoadableYamlConfig import com.willfp.eco.internal.config.yaml.EcoUpdatableYamlConfig import org.reflections.Reflections -import org.reflections.scanners.MethodAnnotationsScanner +import org.reflections.scanners.Scanners import java.lang.reflect.Modifier class EcoConfigHandler( @@ -18,7 +18,7 @@ class EcoConfigHandler( ) : ConfigHandler { private val reflections: Reflections = Reflections( this.plugin::class.java.classLoader, - MethodAnnotationsScanner() + Scanners.MethodsAnnotated ) private val configs = mutableListOf() diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/spigot/eventlisteners/armor/ArmorListener.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/spigot/eventlisteners/armor/ArmorListener.kt index 8581722c..65079b28 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/spigot/eventlisteners/armor/ArmorListener.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/spigot/eventlisteners/armor/ArmorListener.kt @@ -103,12 +103,6 @@ class ArmorListener : Listener { return } if (e.action == Action.RIGHT_CLICK_AIR || e.action == Action.RIGHT_CLICK_BLOCK) { - val player = e.player - if (e.useInteractedBlock() != Event.Result.DENY) { - if (e.clickedBlock != null && e.action == Action.RIGHT_CLICK_BLOCK && !player.isSneaking) { - val mat = e.clickedBlock!!.type - } - } val newArmorType = ArmorType.matchType(e.item) if (newArmorType != null) { if (newArmorType == ArmorType.HELMET && isAirOrNull(e.player.inventory.helmet) || newArmorType == ArmorType.CHESTPLATE && isAirOrNull( diff --git a/eco-core/core-plugin/src/main/resources/plugin.yml b/eco-core/core-plugin/src/main/resources/plugin.yml index 39634b9b..36ed9453 100644 --- a/eco-core/core-plugin/src/main/resources/plugin.yml +++ b/eco-core/core-plugin/src/main/resources/plugin.yml @@ -26,7 +26,7 @@ softdepend: - Oraxen - HeadDatabase libraries: - - 'org.reflections:reflections:0.9.12' + - 'org.reflections:reflections:0.10.1' - 'org.apache.maven:maven-artifact:3.0.3' - 'org.jetbrains.kotlin:kotlin-stdlib:1.5.31' - 'net.kyori:adventure-platform-bukkit:4.0.0'