From b465669a76d1aa0cd76cc615bcb2b4e301114734 Mon Sep 17 00:00:00 2001 From: IanTapply22 Date: Fri, 21 Jun 2024 11:49:45 -0400 Subject: [PATCH] Fix an issue where leads for single balloons would break when falling --- .../java/net/jeqo/bloons/balloon/single/SingleBalloon.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/net/jeqo/bloons/balloon/single/SingleBalloon.java b/src/main/java/net/jeqo/bloons/balloon/single/SingleBalloon.java index 1cd3eda6..d86b3617 100644 --- a/src/main/java/net/jeqo/bloons/balloon/single/SingleBalloon.java +++ b/src/main/java/net/jeqo/bloons/balloon/single/SingleBalloon.java @@ -92,6 +92,12 @@ public void run() { // Teleport the balloon to the move location and set the player location yaw this.teleport(this.getMoveLocation()); + + // If the balloon armor stand is more than 5 blocks away, teleport to player location + if (this.getBalloonArmorStand().getLocation().distance(playerLocation) > 5.0D) { + this.teleport(playerLocation); + } + this.setPlayerLocation(this.getPlayer().getLocation()); this.getPlayerLocation().setYaw(playerLocation.getYaw()); this.setTicks(this.getTicks() + 1);