Minor refactoring/fix
This commit is contained in:
parent
4e38f4a89a
commit
aac81f20bc
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue