From 74fff3a5db960d2790b9fed3d1da274d2336612e Mon Sep 17 00:00:00 2001 From: Connor Linfoot Date: Thu, 13 Jun 2024 17:19:40 +0100 Subject: [PATCH] Fix another identifier usage --- .../modapi/fabric/payload/ServerboundHypixelPayload.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/hypixel/modapi/fabric/payload/ServerboundHypixelPayload.java b/src/main/java/net/hypixel/modapi/fabric/payload/ServerboundHypixelPayload.java index 1a51e40..536b5f4 100644 --- a/src/main/java/net/hypixel/modapi/fabric/payload/ServerboundHypixelPayload.java +++ b/src/main/java/net/hypixel/modapi/fabric/payload/ServerboundHypixelPayload.java @@ -5,13 +5,14 @@ import net.minecraft.network.PacketByteBuf; import net.minecraft.network.codec.PacketCodec; import net.minecraft.network.packet.CustomPayload; +import net.minecraft.util.Identifier; public class ServerboundHypixelPayload implements CustomPayload { private final Id id; private final HypixelPacket packet; public ServerboundHypixelPayload(HypixelPacket packet) { - this.id = CustomPayload.id(packet.getIdentifier()); + this.id = new CustomPayload.Id<>(Identifier.of(packet.getIdentifier())); this.packet = packet; }