fix: apply the rotation and pitch of the offset to a tp

This commit is contained in:
Sekwah 2024-06-22 17:58:49 +01:00
parent 469840194f
commit ab92ff1046

View File

@ -51,7 +51,8 @@ public class SpigotPlayerContainer
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