diff --git a/v1_21/src/main/java/net/countercraft/movecraft/support/v1_21/ISmoothTeleport.java b/v1_21/src/main/java/net/countercraft/movecraft/support/v1_21/ISmoothTeleport.java index 85626b352..edd20345f 100644 --- a/v1_21/src/main/java/net/countercraft/movecraft/support/v1_21/ISmoothTeleport.java +++ b/v1_21/src/main/java/net/countercraft/movecraft/support/v1_21/ISmoothTeleport.java @@ -2,21 +2,22 @@ import io.papermc.paper.entity.TeleportFlag; import net.countercraft.movecraft.SmoothTeleport; -import org.bukkit.Bukkit; import org.bukkit.Location; import org.bukkit.entity.Player; import org.jetbrains.annotations.NotNull; public class ISmoothTeleport extends SmoothTeleport { public void teleport(@NotNull Player player, @NotNull Location location) { - Bukkit.getServer().getLogger().info("Teleporting " + player.getName() + " to " + location); player.teleport( location, TeleportFlag.Relative.X, TeleportFlag.Relative.Y, TeleportFlag.Relative.Z, TeleportFlag.Relative.PITCH, - TeleportFlag.Relative.YAW + TeleportFlag.Relative.YAW, + TeleportFlag.EntityState.RETAIN_OPEN_INVENTORY, + TeleportFlag.EntityState.RETAIN_VEHICLE, + TeleportFlag.EntityState.RETAIN_PASSENGERS ); } }