9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-30 12:29:16 +00:00

clean: suppress deprecated warning

This commit is contained in:
LoJoSho
2023-08-01 12:47:31 -05:00
parent a37d6d984b
commit 548d0c3e9a

View File

@@ -415,6 +415,7 @@ public class PacketManager extends BasePacket {
* @param uuid What is the fake player UUID
* @param sendTo Whom to send the packet to
*/
@SuppressWarnings("deprecation")
public static void sendRemovePlayerPacket(
final Player player,
final UUID uuid,
@@ -422,6 +423,7 @@ public class PacketManager extends BasePacket {
) {
if (NMSHandlers.getVersion().contains("v1_18_R2") || NMSHandlers.getVersion().contains("v1_19_R1")) {
WrapperPlayServerPlayerInfo info = new WrapperPlayServerPlayerInfo();
// Remove player is deprecated on 1.19.3+, but we still need to support 1.18.2
info.setAction(EnumWrappers.PlayerInfoAction.REMOVE_PLAYER);
String name = "Mannequin-" + player.getEntityId();