Skip to content

Commit

Permalink
Fix another identifier usage
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnorLinfoot committed Jul 8, 2024
1 parent f29b5c9 commit 74fff3a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<ServerboundHypixelPayload> 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;
}

Expand Down

0 comments on commit 74fff3a

Please sign in to comment.