Fixed dependency-related issues (Reflections)

This commit is contained in:
Auxilor
2021-10-07 14:39:44 +01:00
parent 4f55d66096
commit 8231afdcbf
3 changed files with 3 additions and 9 deletions

View File

@@ -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(

View File

@@ -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'