Skip to content

Commit

Permalink
Merge pull request #69 from 4-Year-SMP/patch-2
Browse files Browse the repository at this point in the history
fix: get block *below* the player
  • Loading branch information
TheMeinerLP authored Nov 28, 2024
2 parents d2d58e3 + 7ff178d commit 9687ad2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -57,4 +57,4 @@ class AttolloListener(private val attollo: Attollo) : Listener {
player.teleportAsync(modifiedLocation)
}

}
}

0 comments on commit 9687ad2

Please sign in to comment.