Skip to content

Commit

Permalink
Fix an issue where leads for single balloons would break when falling
Browse files Browse the repository at this point in the history
  • Loading branch information
IanTapply22 committed Jun 21, 2024
1 parent 2e23a6d commit b465669
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b465669

Please sign in to comment.