]> git.seodisparate.com - TurnBasedMinecraftMod/commitdiff
Minor refactoring/fix
authorStephen Seo <seo.disparate@gmail.com>
Wed, 23 Oct 2024 04:36:37 +0000 (13:36 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Wed, 23 Oct 2024 07:23:10 +0000 (16:23 +0900)
src/main/java/com/burnedkirby/TurnBasedMinecraft/common/networking/PacketBattlePing.java

index 0e3c1ba59d4ff9d73edc5e110fdb064e5d7ef4c8..3463939100f4956e90c4401db4015b0ccc5d062e 100644 (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,