From bea720f4bed9587e82064b668806cf2e2e43c564 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Wed, 23 Oct 2024 13:36:37 +0900 Subject: [PATCH] Minor refactoring/fix --- .../TurnBasedMinecraft/common/networking/PacketBattlePing.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/burnedkirby/TurnBasedMinecraft/common/networking/PacketBattlePing.java b/src/main/java/com/burnedkirby/TurnBasedMinecraft/common/networking/PacketBattlePing.java index 0e3c1ba..3463939 100644 --- a/src/main/java/com/burnedkirby/TurnBasedMinecraft/common/networking/PacketBattlePing.java +++ b/src/main/java/com/burnedkirby/TurnBasedMinecraft/common/networking/PacketBattlePing.java @@ -15,7 +15,7 @@ public record PacketBattlePing(int battleID, int remainingSeconds) implements Cu public static final CustomPacketPayload.Type TYPE = new CustomPacketPayload.Type<>(ResourceLocation.fromNamespaceAndPath(TurnBasedMinecraftMod.MODID, "network_packetbattleping")); public static final StreamCodec STREAM_CODEC = StreamCodec.composite( - ByteBufCodecs.VAR_INT, + ByteBufCodecs.INT, PacketBattlePing::battleID, ByteBufCodecs.VAR_INT, PacketBattlePing::remainingSeconds,