Skip to content

Commit

Permalink
Extend by 0.5 on the x & z axis for teleportingBoundingBox
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew121410 committed Sep 10, 2024
1 parent 5ed5348 commit aae05c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public ElevatorMovement(Integer floor, Location atDoor, BoundingBox boundingBox)
this.teleportingBoundingBox = this.boundingBox.clone().expand(1);
} else { // This must be a large elevator.
// Expand the bounding box by -1 on the Y axis for minY and +1 on the Y axis for maxY
this.teleportingBoundingBox = this.boundingBox.clone().expand(0, 1, 0);
this.teleportingBoundingBox = this.boundingBox.clone().expand(0.5, 1, 0.5);
}
}

Expand Down

0 comments on commit aae05c9

Please sign in to comment.