diff --git a/src/main/kotlin/dev/themeinerlp/attollo/listener/AttolloListener.kt b/src/main/kotlin/dev/themeinerlp/attollo/listener/AttolloListener.kt index 2666a22..bc20c9c 100644 --- a/src/main/kotlin/dev/themeinerlp/attollo/listener/AttolloListener.kt +++ b/src/main/kotlin/dev/themeinerlp/attollo/listener/AttolloListener.kt @@ -29,7 +29,7 @@ class AttolloListener(private val attollo: Attollo) : Listener { private fun handleElevator(player: Player, up: Boolean = false) { if (!player.hasPermission(USE_PERMISSION)) return - val location = player.location + val location = player.location.subtract(0.0, 1.0, 0.0) val block = location.block if (block.type != attollo.elevatorBlock) return @@ -57,4 +57,4 @@ class AttolloListener(private val attollo: Attollo) : Listener { player.teleportAsync(modifiedLocation) } -} \ No newline at end of file +}