From 658d07e8e41ff1ef47fbb7eea410de3a61d8c054 Mon Sep 17 00:00:00 2001 From: Kieran Wallbanks Date: Thu, 25 Mar 2021 15:34:59 +0000 Subject: [PATCH] Fix clearTitle --- src/main/java/net/minestom/server/entity/Player.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/minestom/server/entity/Player.java b/src/main/java/net/minestom/server/entity/Player.java index 0b906f7cb..e12c32bd6 100644 --- a/src/main/java/net/minestom/server/entity/Player.java +++ b/src/main/java/net/minestom/server/entity/Player.java @@ -1083,8 +1083,7 @@ public class Player extends LivingEntity implements CommandSender, Localizable, /** * Hides the previous title. - * @deprecated Use {@link #clearTitle()}. Note this title cannot be shown again. This - * is expected behavior and will be the case in 1.17. + * @deprecated Use {@link #clearTitle()} */ @Deprecated public void hideTitle() { @@ -1100,7 +1099,7 @@ public class Player extends LivingEntity implements CommandSender, Localizable, @Override public void clearTitle() { - TitlePacket titlePacket = new TitlePacket(TitlePacket.Action.RESET); + TitlePacket titlePacket = new TitlePacket(TitlePacket.Action.HIDE); playerConnection.sendPacket(titlePacket); }