Fixed dependency-related issues (Reflections)
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user