Skip to content

Commit

Permalink
🐛 fix distance
Browse files Browse the repository at this point in the history
  • Loading branch information
XiYang6666 committed Aug 8, 2024
1 parent 699a28e commit bfaf7b3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class MarkListener : Listener {
fun onPlayerMove(event: PlayerMoveEvent) {
val player = event.player
val direction = player.eyeLocation.direction
val maxDistance = 4.0
val maxDistance = 5.0
val result = player.world.rayTraceBlocks(player.eyeLocation, direction, maxDistance)
if (result == null) {
MarkUtil.removeMark(player)
Expand Down

0 comments on commit bfaf7b3

Please sign in to comment.