From ab92ff104628313d306e9b1119700da7ff7da6d7 Mon Sep 17 00:00:00 2001 From: Sekwah Date: Sat, 22 Jun 2024 17:58:49 +0100 Subject: [PATCH] fix: apply the rotation and pitch of the offset to a tp --- .../spigot/connector/container/SpigotPlayerContainer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spigot/src/main/java/com/sekwah/advancedportals/spigot/connector/container/SpigotPlayerContainer.java b/spigot/src/main/java/com/sekwah/advancedportals/spigot/connector/container/SpigotPlayerContainer.java index 51fe077c..34bf9889 100644 --- a/spigot/src/main/java/com/sekwah/advancedportals/spigot/connector/container/SpigotPlayerContainer.java +++ b/spigot/src/main/java/com/sekwah/advancedportals/spigot/connector/container/SpigotPlayerContainer.java @@ -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