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; }