Skip to content

Commit

Permalink
fix: apply the rotation and pitch of the offset to a tp
Browse files Browse the repository at this point in the history
  • Loading branch information
sekwah41 committed Jun 22, 2024
1 parent 9983a3e commit 0f8f704
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ public boolean isOp() {
public boolean teleport(PlayerLocation location) {
return this.player.teleport(new Location(
Bukkit.getWorld(location.getWorldName()), location.getPosX(),
location.getPosY(), location.getPosZ()));
location.getPosY(), location.getPosZ(), location.getYaw(),
location.getPitch()));
}

@Override
Expand Down

0 comments on commit 0f8f704

Please sign in to comment.