Skip to content

Commit 48cb6bf

Browse files
committed
OCD
1 parent 7e804e3 commit 48cb6bf

File tree

1 file changed

+1
-1
lines changed
  • common/src/main/kotlin/com/lambda/interaction/construction/simulation

1 file changed

+1
-1
lines changed

common/src/main/kotlin/com/lambda/interaction/construction/simulation/BuildSimulator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ object BuildSimulator {
585585

586586
/* player is standing on top of the block */
587587
val pBox = player.boundingBox
588-
val aabb = Box(pBox.minX, pBox.minY - 1.0E-6, pBox.minZ, pBox.maxX, pBox.minY, pBox.maxZ)
588+
val aabb = pBox.withMinY(pBox.minY - 1.0E-6)
589589
world.findSupportingBlockPos(player, aabb).orElse(null)?.let { support ->
590590
if (support != pos) return@let
591591
val belowSupport = blockState(support.down())

0 commit comments

Comments
 (0)