From d637b92f6c6abdf7fd5212983aef1c41767dfa42 Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Wed, 1 Jan 2025 13:47:38 +0100 Subject: [PATCH] Fix deprecation in 1.21.3 API --- .../fr/pandacube/lib/paper/players/PaperOnlinePlayer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandalib-paper/src/main/java/fr/pandacube/lib/paper/players/PaperOnlinePlayer.java b/pandalib-paper/src/main/java/fr/pandacube/lib/paper/players/PaperOnlinePlayer.java index c96ef64..438af7b 100644 --- a/pandalib-paper/src/main/java/fr/pandacube/lib/paper/players/PaperOnlinePlayer.java +++ b/pandalib-paper/src/main/java/fr/pandacube/lib/paper/players/PaperOnlinePlayer.java @@ -170,7 +170,7 @@ public interface PaperOnlinePlayer extends PaperOffPlayer, AbstractOnlinePlayer @Override public boolean isChatFullyVisible() { ChatVisibility v = getChatVisibility(); - return v == ChatVisibility.FULL || v == ChatVisibility.UNKNOWN; + return v == ChatVisibility.FULL; } @Override @@ -283,7 +283,7 @@ public interface PaperOnlinePlayer extends PaperOffPlayer, AbstractOnlinePlayer * @param relZ the relative z coordinate. */ default void teleportRelatively(float relX, float relY, float relZ) { - getBukkitPlayer().teleport(getBukkitPlayer().getLocation().add(relX, relY, relZ), Relative.X, Relative.Y, Relative.Z, Relative.YAW, Relative.PITCH); + getBukkitPlayer().teleport(getBukkitPlayer().getLocation().add(relX, relY, relZ), Relative.VELOCITY_X, Relative.VELOCITY_Y, Relative.VELOCITY_Z, Relative.VELOCITY_ROTATION); } /** @@ -291,7 +291,7 @@ public interface PaperOnlinePlayer extends PaperOffPlayer, AbstractOnlinePlayer * @param destination the destination. */ default void teleportRelatively(Location destination) { - getBukkitPlayer().teleport(destination, Relative.X, Relative.Y, Relative.Z, Relative.YAW, Relative.PITCH); + getBukkitPlayer().teleport(destination, Relative.VELOCITY_X, Relative.VELOCITY_Y, Relative.VELOCITY_Z, Relative.VELOCITY_ROTATION); }