From aae05c9ad805cea80bf273c8a477d13365d06ba6 Mon Sep 17 00:00:00 2001 From: Andrew121410 Date: Mon, 9 Sep 2024 20:48:40 -0400 Subject: [PATCH] Extend by 0.5 on the x & z axis for teleportingBoundingBox --- .../com/andrew121410/mc/world16elevators/ElevatorMovement.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/andrew121410/mc/world16elevators/ElevatorMovement.java b/src/main/java/com/andrew121410/mc/world16elevators/ElevatorMovement.java index f606082..384a3b2 100644 --- a/src/main/java/com/andrew121410/mc/world16elevators/ElevatorMovement.java +++ b/src/main/java/com/andrew121410/mc/world16elevators/ElevatorMovement.java @@ -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); } }