Minor refactoring/fix

This commit is contained in:
Stephen Seo 2024-10-23 13:36:37 +09:00
parent 4e38f4a89a
commit aac81f20bc

View file

@ -15,7 +15,7 @@ public record PacketBattlePing(int battleID, int remainingSeconds) implements Cu
public static final CustomPacketPayload.Type<PacketBattlePing> TYPE = new CustomPacketPayload.Type<>(ResourceLocation.fromNamespaceAndPath(TurnBasedMinecraftMod.MODID, "network_packetbattleping"));
public static final StreamCodec<ByteBuf, PacketBattlePing> STREAM_CODEC = StreamCodec.composite(
ByteBufCodecs.VAR_INT,
ByteBufCodecs.INT,
PacketBattlePing::battleID,
ByteBufCodecs.VAR_INT,
PacketBattlePing::remainingSeconds,