mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-11-25 03:55:23 +01:00
fix: apply the rotation and pitch of the offset to a tp
This commit is contained in:
parent
469840194f
commit
ab92ff1046
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user